Skip to content

Commit

Permalink
fix: Disable renderer backgrounding of chromium
Browse files Browse the repository at this point in the history
  • Loading branch information
h3poteto committed Apr 19, 2018
1 parent e0c4953 commit 7fb3dfe
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,9 @@ function createWindow () {
})
}

// Do not lower the rendering priority of Chromium when background
app.commandLine.appendSwitch('disable-renderer-backgrounding')

app.on('ready', createWindow)

app.on('window-all-closed', () => {
Expand Down

0 comments on commit 7fb3dfe

Please sign in to comment.