From c2175a04409f09a03395d45730683f47937cdaea Mon Sep 17 00:00:00 2001 From: Michael Droettboom Date: Tue, 22 Jan 2019 11:08:13 -0500 Subject: [PATCH] Fix preloading on Chrome --- src/pyodide.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pyodide.js b/src/pyodide.js index 46e38d468..3a763ab81 100644 --- a/src/pyodide.js +++ b/src/pyodide.js @@ -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; });