Merge pull request #845 from h3poteto/electron/4.0.8

Update electron version to 4.0.8
This commit is contained in:
AkiraFukushima 2019-03-10 21:48:21 +09:00 committed by GitHub
commit 8185166881
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 18 additions and 8 deletions

16
package-lock.json generated
View File

@ -5590,14 +5590,22 @@
"dev": true
},
"electron": {
"version": "3.0.10",
"resolved": "https://registry.npmjs.org/electron/-/electron-3.0.10.tgz",
"integrity": "sha512-I39IeQP3NOlbjKzTDK8uK2JdiHDfhV5SruCS2Gttkn2MaKCY+yIzQ6Wr4DyBXLeTEkL1sbZxbqQVhCavAliv5w==",
"version": "4.0.8",
"resolved": "https://registry.npmjs.org/electron/-/electron-4.0.8.tgz",
"integrity": "sha512-FOBJIHkuv8wc15N+ZyqwDzPavYVu5CHMBEf14jHDWv7QW2vkEIpJjVK+PIT31kfZfvjsIP0j2wvA/FBsiqB7pw==",
"dev": true,
"requires": {
"@types/node": "8.10.21",
"@types/node": "10.12.30",
"electron-download": "4.1.1",
"extract-zip": "1.6.7"
},
"dependencies": {
"@types/node": {
"version": "10.12.30",
"resolved": "https://registry.npmjs.org/@types/node/-/node-10.12.30.tgz",
"integrity": "sha512-nsqTN6zUcm9xtdJiM9OvOJ5EF0kOI8f1Zuug27O/rgtxCRJHGqncSWfCMZUP852dCKPsDsYXGvBhxfRjDBkF5Q==",
"dev": true
}
}
},
"electron-builder": {

View File

@ -172,7 +172,7 @@
"css-loader": "^0.28.11",
"del": "^3.0.0",
"devtron": "^1.4.0",
"electron": "3.0.10",
"electron": "4.0.8",
"electron-builder": "^20.38.2",
"electron-debug": "^2.0.0",
"electron-devtools-installer": "^2.2.4",

View File

@ -177,6 +177,11 @@ async function createWindow () {
app.dock.setMenu(dockMenu)
}
/**
* Enable accessibility
*/
app.setAccessibilitySupportEnabled(true)
/**
* Initial window options
*/
@ -223,9 +228,6 @@ async function createWindow () {
// Do not lower the rendering priority of Chromium when background
app.commandLine.appendSwitch('disable-renderer-backgrounding')
// Enable accessibility
app.setAccessibilitySupportEnabled(true)
app.on('ready', createWindow)
app.on('window-all-closed', () => {