Merge pull request #302 from mdboom/fix-chrome-preloading

Fix preloading on Chrome
This commit is contained in:
Michael Droettboom 2019-01-22 13:13:16 -05:00 committed by GitHub
commit 986f871fb8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ var languagePluginLoader = new Promise((resolve, reject) => {
if (Module['preloadedWasm'][path] === undefined) { if (Module['preloadedWasm'][path] === undefined) {
promise = promise promise = promise
.then(() => Module['loadWebAssemblyModule']( .then(() => Module['loadWebAssemblyModule'](
FS.readFile(path), true)) FS.readFile(path), {loadAsync: true}))
.then((module) => { .then((module) => {
Module['preloadedWasm'][path] = module; Module['preloadedWasm'][path] = module;
}); });