web: Fix issue with error checking in panic function
This commit is contained in:
parent
f9312e6cd8
commit
befe226f4a
|
@ -1975,8 +1975,7 @@ export class RufflePlayer extends HTMLElement {
|
||||||
return;
|
return;
|
||||||
} else if (
|
} else if (
|
||||||
error instanceof Error &&
|
error instanceof Error &&
|
||||||
(error.name === "CompileError" ||
|
error.message === "Failed to load Ruffle WASM"
|
||||||
error.message.includes("CompileError"))
|
|
||||||
) {
|
) {
|
||||||
const openInNewTab = this.loadedConfig?.openInNewTab;
|
const openInNewTab = this.loadedConfig?.openInNewTab;
|
||||||
const swfUrl = this.loadedConfig && "url" in this.loadedConfig ? new URL(this.loadedConfig.url, document.baseURI) : undefined;
|
const swfUrl = this.loadedConfig && "url" in this.loadedConfig ? new URL(this.loadedConfig.url, document.baseURI) : undefined;
|
||||||
|
|
Loading…
Reference in New Issue