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 -5
View File
@@ -180,13 +180,14 @@ class ElectronReplayApp
this.screenSize = screen.getPrimaryDisplay().workAreaSize;
app.on("web-contents-created", (event, contents) => {
contents.on("new-window", async (event, navigationUrl) => {
contents.setWindowOpenHandler(({url}) => {
// load docs in native browser for now
if (navigationUrl === STATIC_PREFIX + "docs") {
event.preventDefault();
await shell.openExternal("https://replayweb.page/docs/");
if (url === STATIC_PREFIX + "docs") {
shell.openExternal("https://replayweb.page/docs/");
return { action: "deny"};
}
return { action: "allow"};
});
});