diff --git a/src/lib/engine/shared.ts b/src/lib/engine/shared.ts index fc60ad4..1713b47 100644 --- a/src/lib/engine/shared.ts +++ b/src/lib/engine/shared.ts @@ -10,7 +10,13 @@ export const isWasmSupported = () => Uint8Array.of(0x0, 0x61, 0x73, 0x6d, 0x01, 0x00, 0x00, 0x00) ); -export const isMultiThreadSupported = () => SharedArrayBuffer !== undefined; +export const isMultiThreadSupported = () => { + try { + return SharedArrayBuffer !== undefined; + } catch(e) { + return false; + } +}; export const isEngineSupported = (name: EngineName): boolean => { switch (name) {