Mercurial > hg > orthanc-stone
diff Platforms/Wasm/default-library.js @ 504:7cdb4634846c
Merge
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Tue, 26 Feb 2019 21:15:20 +0100 |
parents | 5055031f4a06 |
children | 7105a0bad250 |
line wrap: on
line diff
--- a/Platforms/Wasm/default-library.js Thu Jan 31 19:23:12 2019 +0100 +++ b/Platforms/Wasm/default-library.js Tue Feb 26 21:15:20 2019 +0100 @@ -2,10 +2,10 @@ mergeInto(LibraryManager.library, { ScheduleWebViewportRedrawFromCpp: function(cppViewportHandle) { - ScheduleWebViewportRedraw(cppViewportHandle); + window.ScheduleWebViewportRedraw(cppViewportHandle); }, CreateWasmViewportFromCpp: function(htmlCanvasId) { - return CreateWasmViewport(htmlCanvasId); + return window.CreateWasmViewport(htmlCanvasId); }, // each time the StoneApplication updates its status, it may signal it through this method. i.e, to change the status of a button in the web interface UpdateStoneApplicationStatusFromCpp: function(statusUpdateMessage) { @@ -13,4 +13,3 @@ UpdateWebApplication(statusUpdateMessage_); } }); - \ No newline at end of file