Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d5f6385

Browse files
committed
wip
1 parent 0e45eb2 commit d5f6385

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

wasm/main.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,11 @@ function checkCompat(prop: string) {
2222
if (prop in window) {
2323
return; // OK
2424
}
25-
fatal(`window.${prop} is not supported by this browser`);
25+
fatal(
26+
`window.${prop} is not supported by this browser. If you're on Firefox or Safari, please enable browser's feature flag`,
27+
);
2628
}
2729

28-
checkCompat('Worker');
2930
checkCompat('Atomics');
3031
checkCompat('SharedArrayBuffer');
3132

0 commit comments

Comments
 (0)