Skip to content

web: make flow or message make it clear that the tool generates the phrase for you #91

@elithrar

Description

@elithrar

Chrome Version 90.0.4430.93 (Official Build) (x86_64)

Steps to reproduce:

  1. Visit webwormhole.io
  2. Create a phrase + join
  3. Observe an uncaught exception in the console
  4. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions