mirror of
https://github.com/jedisct1/libsodium.git
synced 2024-12-23 20:15:19 -07:00
iOS fix
This commit is contained in:
parent
461ac93b26
commit
8e138b9f14
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user