This commit is contained in:
Ryan Lester 2018-08-22 20:06:32 -04:00 committed by Frank Denis
parent 16744191cc
commit 51d76b88df

View File

@ -108,12 +108,16 @@ if [ "$DIST" = yes ]; then
reject(err);
}
};
$(cat "${PREFIX}/lib/libsodium.wasm.tmp.js")
}).catch(function () {
Module.useBackupModule = function () {
var Module = _Module;
Module.onAbort = undefined;
Module.onRuntimeInitialized = undefined;
Module.useBackupModule = undefined;
$(cat "${PREFIX}/lib/libsodium.asm.tmp.js" | sed 's|use asm||g')
};
$(cat "${PREFIX}/lib/libsodium.wasm.tmp.js")
}).catch(function () {
_Module.useBackupModule();
});
EOM