fix: Disable renderer backgrounding of chromium

This commit is contained in:
AkiraFukushima 2018-04-20 00:34:24 +09:00
parent e0c4953c2f
commit 7fb3dfeb3b
1 changed files with 3 additions and 0 deletions

View File

@ -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', () => {