aboutsummaryrefslogtreecommitdiff
path: root/platform/javascript/godot_shell.html
diff options
context:
space:
mode:
authorRémi Verschelde2016-10-31 14:06:46 +0100
committerGitHub2016-10-31 14:06:46 +0100
commit681575fa7123592897090c6cce44402c4e45baeb (patch)
tree063bf4bebefabc373119f50e7a76471fc6b7140d /platform/javascript/godot_shell.html
parent7384a6519f377ff926906ae37844c6e8044ae083 (diff)
parentd6f2862429399844ebdd16b61da3a3c9d14fba36 (diff)
downloadgodot-681575fa7123592897090c6cce44402c4e45baeb.tar.gz
godot-681575fa7123592897090c6cce44402c4e45baeb.tar.zst
godot-681575fa7123592897090c6cce44402c4e45baeb.zip
Merge pull request #6994 from eska014/wasm
Add option 'wasm' to compile to WebAssembly in web export [ci skip]
Diffstat (limited to '')
-rw-r--r--platform/javascript/godot_shell.html (renamed from tools/dist/html_fs/godot.html)21
1 files changed, 2 insertions, 19 deletions
diff --git a/tools/dist/html_fs/godot.html b/platform/javascript/godot_shell.html
index c354826e1..3170d2bb9 100644
--- a/tools/dist/html_fs/godot.html
+++ b/platform/javascript/godot_shell.html
@@ -351,24 +351,7 @@
};
};
//]]></script>
- <script type="text/javascript" src="$GODOT_FS"></script>
- <script>
- (function() {
- var memoryInitializer = "$GODOT_MEM";
- if (typeof Module.locateFile === "function") {
- memoryInitializer = Module.locateFile(memoryInitializer);
- } else if (Module.memoryInitializerPrefixURL) {
- memoryInitializer = Module.memoryInitializerPrefixURL + memoryInitializer;
- }
- var xhr = Module.memoryInitializerRequest = new XMLHttpRequest();
- xhr.open("GET", memoryInitializer, true);
- xhr.responseType = "arraybuffer";
- xhr.send(null);
- })();
-
- var script = document.createElement("script");
- script.src = "$GODOT_JS";
- document.body.appendChild(script);
- </script>
+ <script type="text/javascript" src="$GODOT_BASEfs.js"></script>
+ {{{ SCRIPT }}}
</body>
</html>