Commit
·
f8b99cb
1
Parent(s):
00b7b6c
Upload main.js
Browse files
main.js
CHANGED
@@ -34,8 +34,8 @@ var Module = typeof Module != 'undefined' ? Module : {};
|
|
34 |
// web worker
|
35 |
PACKAGE_PATH = encodeURIComponent(location.pathname.toString().substring(0, location.pathname.toString().lastIndexOf('/')) + '/');
|
36 |
}
|
37 |
-
var PACKAGE_NAME = 'main.data';
|
38 |
-
var REMOTE_PACKAGE_BASE = 'main.data';
|
39 |
if (typeof Module['locateFilePackage'] === 'function' && !Module['locateFile']) {
|
40 |
Module['locateFile'] = Module['locateFilePackage'];
|
41 |
err('warning: you defined Module.locateFilePackage, that has been renamed to Module.locateFile (using your locateFilePackage for now)');
|
@@ -906,7 +906,7 @@ function createExportWrapper(name, fixedasm) {
|
|
906 |
// include: runtime_exceptions.js
|
907 |
// end include: runtime_exceptions.js
|
908 |
var wasmBinaryFile;
|
909 |
-
wasmBinaryFile = 'main.wasm';
|
910 |
if (!isDataURI(wasmBinaryFile)) {
|
911 |
wasmBinaryFile = locateFile(wasmBinaryFile);
|
912 |
}
|
|
|
34 |
// web worker
|
35 |
PACKAGE_PATH = encodeURIComponent(location.pathname.toString().substring(0, location.pathname.toString().lastIndexOf('/')) + '/');
|
36 |
}
|
37 |
+
var PACKAGE_NAME = '/main.data';
|
38 |
+
var REMOTE_PACKAGE_BASE = '/main.data';
|
39 |
if (typeof Module['locateFilePackage'] === 'function' && !Module['locateFile']) {
|
40 |
Module['locateFile'] = Module['locateFilePackage'];
|
41 |
err('warning: you defined Module.locateFilePackage, that has been renamed to Module.locateFile (using your locateFilePackage for now)');
|
|
|
906 |
// include: runtime_exceptions.js
|
907 |
// end include: runtime_exceptions.js
|
908 |
var wasmBinaryFile;
|
909 |
+
wasmBinaryFile = '/main.wasm';
|
910 |
if (!isDataURI(wasmBinaryFile)) {
|
911 |
wasmBinaryFile = locateFile(wasmBinaryFile);
|
912 |
}
|