update to wabac.js 2.9.0-beta.0, smaller file size, loading improvements

ruffle: support for ruffle for flash loading, both hosted and in app
electron: update to latest beta (14) for latest chromium version
embed error messages: better error message when service worker can not be found
electron: build universal app for osx
bump to 1.5.0!
This commit is contained in:
Ilya Kreymer
2021-08-28 13:55:57 -07:00
parent 741fd6c4b1
commit c090003d8a
16 changed files with 742 additions and 357 deletions
+6 -11
View File
@@ -55,19 +55,18 @@ class Embed extends LitElement
hashString: { type: String },
deepLink: { type: Boolean },
noSW: { type: Boolean },
noSandbox: { type: Boolean }
noSandbox: { type: Boolean },
errorMessage: { type: String }
};
}
async doRegister() {
try {
await registerSW(this.swName, this.replaybase);
console.log("done");
this.swInited = true;
} catch (e) {
console.log(e);
this.noSW = true;
this.errorMessage = e;
}
}
@@ -184,16 +183,12 @@ class Embed extends LitElement
` : html``}
${this.noSW ? html`
${this.errorMessage ? html`
<section class="full-width">
<div class="has-text-centered">
<fa-icon class="logo" id="wrlogo" size="2.5rem" .svg=${rwpLogo} aria-hidden="true"></fa-icon>
</div>
<div class="error">
Sorry, ReplayWeb.page won't work in this browser as Service Workers are not supported.
Please try a different browser.\n
(Service Workers are disabled in Firefox in Private Mode. If Using Private Mode in Firefox, try regular mode).
</div>
<div class="error">${this.errorMessage}</div>
</section>
`: ""}`;
}