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:
@@ -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"};
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user