Mercurial > hg > orthanc-stone
diff Platforms/Wasm/default-library.js @ 562:37e396ae08a3
Merged dev into default
author | Alain Mazy <am@osimis.io> |
---|---|
date | Thu, 18 Apr 2019 07:30:56 +0000 |
parents | 7105a0bad250 |
children | 70992b38aa8a |
line wrap: on
line diff
--- a/Platforms/Wasm/default-library.js Wed Apr 17 17:57:50 2019 +0200 +++ b/Platforms/Wasm/default-library.js Thu Apr 18 07:30:56 2019 +0000 @@ -7,9 +7,15 @@ CreateWasmViewportFromCpp: function(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) { + // 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 + UpdateStoneApplicationStatusFromCppWithString: function(statusUpdateMessage) { var statusUpdateMessage_ = UTF8ToString(statusUpdateMessage); - UpdateWebApplication(statusUpdateMessage_); + window.UpdateWebApplicationWithString(statusUpdateMessage_); + }, + // same, but with a serialized message + UpdateStoneApplicationStatusFromCppWithSerializedMessage: function(statusUpdateMessage) { + var statusUpdateMessage_ = UTF8ToString(statusUpdateMessage); + window.UpdateWebApplicationWithSerializedMessage(statusUpdateMessage_); } });