Merge pull request #747 from buu700/master

iOS fix
This commit is contained in:
Frank Denis 2018-08-23 10:17:54 +02:00 committed by GitHub
commit 85d2e8e1ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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