diff Platforms/Wasm/wasm-application.ts @ 240:ddbb339ed4cf am

orthancBaseUrl is now configurable
author am@osimis.io
date Wed, 20 Jun 2018 09:43:36 +0200
parents 126c9c0c9333
children 8ff70c04c6df
line wrap: on
line diff
--- a/Platforms/Wasm/wasm-application.ts	Wed Jun 20 09:26:15 2018 +0200
+++ b/Platforms/Wasm/wasm-application.ts	Wed Jun 20 09:43:36 2018 +0200
@@ -86,7 +86,7 @@
   UpdateContentThread();
 }
 
-function InitializeWasmApplication(wasmModuleName: string) {
+function InitializeWasmApplication(wasmModuleName: string, orthancBaseUrl: string) {
   
   Stone.Framework.Configure(wasmModuleName);
 
@@ -106,6 +106,8 @@
     WasmWebService_NotifyError = StoneFrameworkModule.cwrap('WasmWebService_NotifyError', null, ['number', 'string', 'number']);
     NotifyUpdateContent = StoneFrameworkModule.cwrap('NotifyUpdateContent', null, []);
 
+    StoneFrameworkModule.ccall('WasmWebService_SetBaseUrl', null, ['string'], [orthancBaseUrl]);
+
     // Prevent scrolling
     document.body.addEventListener('touchmove', function (event) {
       event.preventDefault();