diff --git a/web/packages/core/src/internal/ui/panic.tsx b/web/packages/core/src/internal/ui/panic.tsx index 0461358c2c50..c8893fc397d2 100644 --- a/web/packages/core/src/internal/ui/panic.tsx +++ b/web/packages/core/src/internal/ui/panic.tsx @@ -246,6 +246,19 @@ function createPanicError(error: Error | null): { }; } + if (error.cause.name === "CompileError" && message.includes("bad type")) { + // Self hosted: User has a browser without support for necessary WebAssembly extensions + return { + body: textAsParagraphs("error-wasm-unsupported-browser"), + actions: [ + CommonActions.openWiki( + "#web", + ), + CommonActions.ShowDetails, + ], + }; + } + if (error.cause.name === "CompileError") { // Self hosted: Cannot load `.wasm` file - incorrect configuration or missing files return { diff --git a/web/packages/core/texts/en-US/messages.ftl b/web/packages/core/texts/en-US/messages.ftl index a4a950894090..4534186eadaf 100644 --- a/web/packages/core/texts/en-US/messages.ftl +++ b/web/packages/core/texts/en-US/messages.ftl @@ -68,6 +68,10 @@ error-wasm-disabled-on-edge = To fix this, try opening your browser's settings, clicking "Privacy, search, and services", scrolling down, and turning off "Enhance your security on the web". This will allow your browser to load the required ".wasm" files. If the issue persists, you might have to use a different browser. +error-wasm-unsupported-browser = + The browser you are using does not support the WebAssembly extensions Ruffle requires to run. + Please switch to a supported browser. + You can find a list of supported browsers on the Wiki. error-javascript-conflict = Ruffle has encountered a major issue whilst trying to initialize. It seems like this page uses JavaScript code that conflicts with Ruffle.