diff Platforms/Wasm/Defaults.cpp @ 272:d7d91d96b9d8 am-2

fix
author am@osimis.io
date Fri, 24 Aug 2018 09:11:06 +0200
parents 65562a28fe05
children 8a86695fcbc3
line wrap: on
line diff
--- a/Platforms/Wasm/Defaults.cpp	Thu Aug 23 17:12:54 2018 +0200
+++ b/Platforms/Wasm/Defaults.cpp	Fri Aug 24 09:11:06 2018 +0200
@@ -87,7 +87,8 @@
     application->DeclareStartupOptions(options);
     startupParametersBuilder.GetStartupParameters(parameters, options);
 
-    context.reset(new OrthancStone::BasicApplicationContext(OrthancStone::WasmWebService::GetInstance()));
+    context.reset(new OrthancStone::BasicApplicationContext());
+    context->SetWebService(OrthancStone::WasmWebService::GetInstance());
     application->Initialize(context.get(), statusBar_, parameters);
     application->InitializeWasm();