Skip to content
This repository was archived by the owner on Aug 4, 2025. It is now read-only.

Commit b15b5cf

Browse files
authored
Assert support for wasm and getRandomValues
1 parent 293fbf4 commit b15b5cf

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

index.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,15 @@
102102
<input type="submit" id="work" style="display:none;">
103103
<p id="status" class="disabled" style="margin:0;font-size:16px;">Ready.</p>
104104
</div>
105+
<script>
106+
(() => {
107+
"use strict";
108+
109+
if (!WebAssembly || !WebAssembly.instantiateStreaming || !window.crypto || !window.crypto.getRandomValues) {
110+
document.body.innerHTML = "<h1>Unsupported browser!</h1>";
111+
}
112+
})();
113+
</script>
105114
<script>
106115
(()=>{
107116
"use strict";

0 commit comments

Comments
 (0)