Revert "Electron 13.4.0 (#3820)"

This reverts commit 65d7fca691.

Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>
This commit is contained in:
Jim Ehrismann committed 2021-11-01 19:08:57 -04:00
1 parent 5cc663c18b
commit 689014a0c8
4 files changed
+10 -10

No files matched your search

+4 -4
View File
@@ -109,6 +109,10 @@ 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" });
})
@@ -146,10 +150,6 @@ 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" };
});
}