From 0fda9a304b1c4cc8bccb36fe097badb0c7f7b59f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20=E2=80=98Touky=E2=80=99=20Huet?= Date: Mon, 30 Sep 2013 11:50:50 +0000 Subject: [PATCH] Html : Added Embed Module var in main html so compatibility is ensured. --- src/platform/emscripten/lol_shell.html | 4 ++-- test/meshviewer_index.html | 4 ++++ test/nacl_loading.js | 12 +++++------- 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/src/platform/emscripten/lol_shell.html b/src/platform/emscripten/lol_shell.html index 269e3496..a9d6a053 100644 --- a/src/platform/emscripten/lol_shell.html +++ b/src/platform/emscripten/lol_shell.html @@ -161,8 +161,8 @@ canvas.emscripten Module.setStatus('Please wait, calculating load balance ...', 0, 1); //Module <-> Page communication setup var cur_obj = (parent) ? (parent) : (this); - cur_obj.g_embed_em_module = Module; - cur_obj.SendMessageToModule = function() { this.g_embed_em_module.SendMessage(this.GetTextAreaCodeSrc().value); }; + cur_obj.g_embed_module = Module; + cur_obj.SendMessageToModule = function() { this.g_embed_module.SendMessage(this.GetTextAreaCodeSrc().value); }; cur_obj.ModuleSentMessage = function(message) { /* */ }; diff --git a/test/meshviewer_index.html b/test/meshviewer_index.html index fbc38356..54a0467a 100644 --- a/test/meshviewer_index.html +++ b/test/meshviewer_index.html @@ -1,5 +1,6 @@ +