1
0
mirror of https://github.com/lensapp/lens.git synced 2024-11-12 23:24:42 +03:00

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 2021-09-27 11:32:37 +03:00 committed by GitHub
parent 1bc4f64212
commit ab5eb356c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 10 deletions

View File

@ -1,3 +1,3 @@
disturl "https://atom.io/download/electron"
target "12.0.15"
target "13.4.0"
runtime "electron"

View File

@ -327,7 +327,7 @@
"css-loader": "^5.2.6",
"deepdash": "^5.3.5",
"dompurify": "^2.3.1",
"electron": "^12.0.17",
"electron": "^13.4.0",
"electron-builder": "^22.11.11",
"electron-notarize": "^0.3.0",
"esbuild": "^0.12.24",

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" };
});
}

View File

@ -5268,10 +5268,10 @@ electron-window-state@^5.0.3:
jsonfile "^4.0.0"
mkdirp "^0.5.1"
electron@^12.0.17:
version "12.0.17"
resolved "https://registry.yarnpkg.com/electron/-/electron-12.0.17.tgz#9707c9bfd0a29ae63b8b66f1b3acf8894f7b63f4"
integrity sha512-jkOMKSEj/X9i++5LD7NKqYK/ORi6H0kHYk6rrvcJNQfbDpYX5lxNNexZ2ikPeKxS2B84+WcSFrw5Ce9y8B+pmA==
electron@^13.4.0:
version "13.4.0"
resolved "https://registry.yarnpkg.com/electron/-/electron-13.4.0.tgz#f9f9e518d8c6bf23bfa8b69580447eea3ca0f880"
integrity sha512-KJGWS2qa0xZXIMPMDUNkRVO8/JxRd4+M0ejYYOzu2LIQ5ijecPzNuNR9nvDkml9XyyRBzu975FkhJcwD17ietQ==
dependencies:
"@electron/get" "^1.0.1"
"@types/node" "^14.6.2"