Merge pull request #2100 from resin-io/disable-timer-throttle

fix(gui): Disable throttling timers when in background
This commit is contained in:
Jonas Hermsmeier 2018-03-21 20:34:31 +01:00 committed by GitHub
commit e01aec7b52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,7 +46,10 @@ electron.app.on('ready', () => {
fullscreenable: false,
autoHideMenuBar: true,
titleBarStyle: 'hidden-inset',
icon: path.join(__dirname, '..', '..', 'assets', 'icon.png')
icon: path.join(__dirname, '..', '..', 'assets', 'icon.png'),
webPreferences: {
backgroundThrottling: false
}
})
buildWindowMenu(mainWindow)