Update electron to 4.1.5

Changelog-entry: Update electron to 4.1.5
Change-type: patch
This commit is contained in:
Alexis Svinartchouk 2019-04-25 16:04:40 +02:00
parent 8b6f3f6022
commit 88f543dd25
4 changed files with 9 additions and 19 deletions

View File

@ -86,16 +86,6 @@ const createMainWindow = () => {
mainWindow.show() mainWindow.show()
}) })
// Prevent the user from being allowed to zoom-in the application.
//
// This function should be called on the renderer process. We use
// `executeJavaScript()` rather than moving this to a file in the
// renderer process for convenience, since we have all other
// electron desktop experience fixes in this file.
//
// See https://github.com/electron/electron/issues/3609
mainWindow.webContents.executeJavaScript('require(\'electron\').webFrame.setVisualZoomLevelLimits(1, 1);')
// Prevent external resources from being loaded (like images) // Prevent external resources from being loaded (like images)
// when dropping them on the WebView. // when dropping them on the WebView.
// See https://github.com/electron/electron/issues/5919 // See https://github.com/electron/electron/issues/5919

14
npm-shrinkwrap.json generated
View File

@ -4174,20 +4174,20 @@
"dev": true "dev": true
}, },
"electron": { "electron": {
"version": "3.1.3", "version": "4.1.5",
"resolved": "https://registry.npmjs.org/electron/-/electron-3.1.3.tgz", "resolved": "https://registry.npmjs.org/electron/-/electron-4.1.5.tgz",
"integrity": "sha512-Y1TbV5py2O0br0JVYh+ew1cW4cIOOgRNRMzwTwWuZNMZ9fK/XLlqsbZr1GpYHdiN2yIU1koO+g4Cw8VuW86NXQ==", "integrity": "sha512-0VZzUd4vZaUeSLdxJI/XMrMnPN7AROjPFZOiNgZZkYRUUEjGHfaSAbCJyxuXtii52KGhzGL0JgW0q5QmQ3ykKQ==",
"dev": true, "dev": true,
"requires": { "requires": {
"@types/node": "^8.0.24", "@types/node": "^10.12.18",
"electron-download": "^4.1.0", "electron-download": "^4.1.0",
"extract-zip": "^1.0.3" "extract-zip": "^1.0.3"
}, },
"dependencies": { "dependencies": {
"@types/node": { "@types/node": {
"version": "8.10.40", "version": "10.14.5",
"resolved": "https://registry.npmjs.org/@types/node/-/node-8.10.40.tgz", "resolved": "https://registry.npmjs.org/@types/node/-/node-10.14.5.tgz",
"integrity": "sha512-RRSjdwz63kS4u7edIwJUn8NqKLLQ6LyqF/X4+4jp38MBT3Vwetewi2N4dgJEshLbDwNgOJXNYoOwzVZUSSLhkQ==", "integrity": "sha512-Ja7d4s0qyGFxjGeDq5S7Si25OFibSAHUi6i17UWnwNnpitADN7hah9q0Tl25gxuV5R1u2Bx+np6w4LHXfHyj/g==",
"dev": true "dev": true
} }
} }

View File

@ -85,7 +85,7 @@
"angular-mocks": "1.7.6", "angular-mocks": "1.7.6",
"babel-loader": "^8.0.4", "babel-loader": "^8.0.4",
"chalk": "^1.1.3", "chalk": "^1.1.3",
"electron": "3.1.3", "electron": "4.1.5",
"electron-builder": "^20.40.2", "electron-builder": "^20.40.2",
"electron-mocha": "^6.0.4", "electron-mocha": "^6.0.4",
"eslint": "^4.17.0", "eslint": "^4.17.0",

View File

@ -10,7 +10,7 @@
+ // TODO PR something to electron to pass in the version number for forks + // TODO PR something to electron to pass in the version number for forks
+ // https://github.com/electron/electron/issues/9058 + // https://github.com/electron/electron/issues/9058
+ try { electron_version = require('electron/package.json').version; } + try { electron_version = require('electron/package.json').version; }
+ catch (_) { electron_version = '3.1.3'; } + catch (_) { electron_version = '4.1.5'; }
+ } + }
+ return get_electron_abi(runtime, electron_version); + return get_electron_abi(runtime, electron_version);
} else { } else {