From 24ff2a70495e92fb3e9b6f87c41f6d909d1a928c Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Fri, 29 Sep 2017 08:49:42 +0200 Subject: [PATCH] Emscripten: just use Module.onRuntimeInitialized = resolve; --- dist-build/emscripten.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist-build/emscripten.sh b/dist-build/emscripten.sh index 34af9313..a60809c6 100755 --- a/dist-build/emscripten.sh +++ b/dist-build/emscripten.sh @@ -79,7 +79,7 @@ if [ "$DIST" = yes ]; then } Module.ready = new Promise(function (resolve, reject) { Module.onAbort = reject; - Module.onRuntimeInitialized = function () { resolve(); }; + Module.onRuntimeInitialized = resolve; $(cat "${PREFIX}/lib/libsodium.wasm.tmp.js") }).catch(function () { Module.onAbort = undefined;