Fix preloading on Chrome

This commit is contained in:
Michael Droettboom 2019-01-22 11:08:13 -05:00
parent 60977f0db8
commit c2175a0440
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) {
promise = promise
.then(() => Module['loadWebAssemblyModule'](
FS.readFile(path), true))
FS.readFile(path), {loadAsync: true}))
.then((module) => {
Module['preloadedWasm'][path] = module;
});