Chrome Version 90.0.4430.93 (Official Build) (x86_64)
Steps to reproduce:
- Visit webwormhole.io
- Create a phrase + join
- Observe an uncaught exception in the console
- Attempting to join from other clients fails
Uncaught (in promise) bad code
(anonymous) @ webwormhole.js:19
(anonymous) @ webwormhole.js:18
Wormhole @ webwormhole.js:17
connect @ main.js:358
Possibly related is that the Wasm loader fails due to an invalid/incompatible CSP - Content Security Policy of your site blocks the use of 'eval' in JavaScript is reported by Chrome only when we execute the below:
async function wasmready() {
if (!hacks.nowasm) {
const go = new Go();
const wasm = await WebAssembly.instantiateStreaming( // Content-Security-Policy warning triggers here
fetch(hacks.wasmURL),
go.importObject,
);
go.run(wasm.instance);
}
}
You need to (unfortunately...) allow unsafe-eval to execute Wasm per WebAssembly/content-security-policy#7