Electron 13.4.0 (#3820)

* electron 13.4.0

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* electron 13.4.0

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* refactor deprecated window event handler

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen authored and GitHub committed 2021-09-27 11:32:37 +03:00
1 parent 1bc4f64212
commit ab5eb356c4
4 files changed
+10 -10

No files matched your search

+4 -4
View File
@@ -109,10 +109,6 @@ export class WindowManager extends Singleton {
app.dock?.hide(); // hide icon in dock (mac-os)
})
.webContents
.on("new-window", (event, url) => {
event.preventDefault();
shell.openExternal(url);
})
.on("dom-ready", () => {
appEventBus.emit({ name: "app", action: "dom-ready" });
})
@@ -150,6 +146,10 @@ export class WindowManager extends Singleton {
// Always disable Node.js integration for all webviews
webPreferences.nodeIntegration = false;
}).setWindowOpenHandler((details) => {
shell.openExternal(details.url);
return { action: "deny" };
});
}