Skip to content

Commit

Permalink
Merge pull request #246 from h3poteto/priority
Browse files Browse the repository at this point in the history
Disable renderer backgrounding of chromium
  • Loading branch information
h3poteto authored Apr 19, 2018
2 parents 8ea31ee + 7fb3dfe commit eccce55
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 eccce55

Please sign in to comment.