Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions web/packages/core/src/internal/ui/panic.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 4 additions & 0 deletions web/packages/core/texts/en-US/messages.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down