1
mirror of https://github.com/jedisct1/libsodium.git synced 2024-12-19 10:05:05 -07:00
This commit is contained in:
Ryan Lester 2018-08-22 20:06:32 -04:00
parent 461ac93b26
commit 8e138b9f14
No known key found for this signature in database
GPG Key ID: 0A5309A7C2085405

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