Skip to content

Commit

Permalink
Update electron version to 4.0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
h3poteto committed Mar 10, 2019
1 parent faf322c commit f1c12d3
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 8 deletions.
16 changes: 12 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
8 changes: 5 additions & 3 deletions src/main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,11 @@ async function createWindow () {
app.dock.setMenu(dockMenu)
}

/**
* Enable accessibility
*/
app.setAccessibilitySupportEnabled(true)

/**
* Initial window options
*/
Expand Down Expand Up @@ -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', () => {
Expand Down

0 comments on commit f1c12d3

Please sign in to comment.