fix(gui): Disable throttling timers when in background

This disables Electron throttling timers when not in the foreground.

Change-Type: patch
This commit is contained in:
Jonas Hermsmeier 2018-02-22 17:02:08 +01:00
parent 1536e62734
commit d91d957777
No known key found for this signature in database
GPG Key ID: 1B870F801A0CEE9F

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)