mirror of
https://github.com/jedisct1/libsodium.git
synced 2026-08-25 08:37:13 +09:00
Merge branch 'stable' of github.com:jedisct1/libsodium into stable
* 'stable' of github.com:jedisct1/libsodium: Only run test-globals if it exists Put <meta> tag outside <style> fix for asm.js async loading
This commit is contained in:
@@ -67,7 +67,7 @@ jobs:
|
||||
|
||||
- name: Check globals
|
||||
run: |
|
||||
test/rename-globals.sh
|
||||
[ -x test/rename-globals.sh ] && test/rename-globals.sh
|
||||
|
||||
other-comp:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
+18
-10
@@ -118,20 +118,28 @@ if [ "$DIST" = yes ]; then
|
||||
}
|
||||
};
|
||||
Module.useBackupModule = function() {
|
||||
var Module = {};
|
||||
$(cat "${PREFIX}/lib/libsodium.asm.tmp.js" | sed 's|use asm||g')
|
||||
Object.keys(_Module).forEach(function(k) {
|
||||
if (k !== 'getRandomValue') {
|
||||
delete _Module[k];
|
||||
}
|
||||
});
|
||||
Object.keys(Module).forEach(function(k) {
|
||||
_Module[k] = Module[k];
|
||||
return new Promise(function(resolve, reject) {
|
||||
var Module = {};
|
||||
Module.onAbort = reject;
|
||||
|
||||
Module.onRuntimeInitialized = function() {
|
||||
Object.keys(_Module).forEach(function(k) {
|
||||
if (k !== 'getRandomValue') {
|
||||
delete _Module[k];
|
||||
}
|
||||
});
|
||||
Object.keys(Module).forEach(function(k) {
|
||||
_Module[k] = Module[k];
|
||||
});
|
||||
resolve();
|
||||
};
|
||||
|
||||
$(cat "${PREFIX}/lib/libsodium.asm.tmp.js" | sed 's|use asm||g')
|
||||
});
|
||||
};
|
||||
$(cat "${PREFIX}/lib/libsodium.wasm.tmp.js")
|
||||
}).catch(function() {
|
||||
_Module.useBackupModule();
|
||||
return _Module.useBackupModule();
|
||||
});
|
||||
EOM
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<style>
|
||||
<meta name="google" content="notranslate" />
|
||||
<style>
|
||||
body {
|
||||
background: white;
|
||||
color: black;
|
||||
|
||||
Reference in New Issue
Block a user