diff Resources/CodeGeneration/testWasmIntegrated/DefaultLibrary.js @ 499:baa9e1e932db bgo-commands-codegen

wasm + ts demonstrator WORKS!
author bgo-osimis
date Sun, 24 Feb 2019 20:22:56 +0100
parents 6d62fc8a6988
children f185cfcb72a0
line wrap: on
line diff
--- a/Resources/CodeGeneration/testWasmIntegrated/DefaultLibrary.js	Sun Feb 24 13:23:14 2019 +0100
+++ b/Resources/CodeGeneration/testWasmIntegrated/DefaultLibrary.js	Sun Feb 24 20:22:56 2019 +0100
@@ -5,10 +5,11 @@
   // It needs to be put in this file so that the emscripten SDK linker knows where to find it.
   SendFreeTextFromCppJS: function(statusUpdateMessage) {
     var statusUpdateMessage_ = UTF8ToString(statusUpdateMessage);
-    SendFreeTextFromCpp(statusUpdateMessage_);
+    window.SendFreeTextFromCpp(statusUpdateMessage_);
   },
   SendMessageFromCppJS: function(statusUpdateMessage) {
     var statusUpdateMessage_ = UTF8ToString(statusUpdateMessage);
     SendMessageFromCpp(statusUpdateMessage_);
   }
 });
+