Disable background throttling

Reference: https://github.com/webtorrent/webtorrent-desktop/pull/1720#issuecomment-722011487

I actually think we want backgroundThrottling: false so our timers and intervals aren't throttled when the app is backgrounded.
This commit is contained in:
Feross Aboukhadijeh
2020-11-04 12:34:48 -10:00
parent 38d9c4c504
commit 9e0d91f144
3 changed files with 6 additions and 3 deletions

View File

@@ -27,7 +27,8 @@ function init () {
webPreferences: {
nodeIntegration: true,
enableBlinkFeatures: 'AudioVideoTracks',
enableRemoteModule: true
enableRemoteModule: true,
backgroundThrottling: false
},
width: 300
})

View File

@@ -45,7 +45,8 @@ function init (state, options) {
webPreferences: {
nodeIntegration: true,
enableBlinkFeatures: 'AudioVideoTracks',
enableRemoteModule: true
enableRemoteModule: true,
backgroundThrottling: false
},
x: initialBounds.x,
y: initialBounds.y

View File

@@ -27,7 +27,8 @@ function init () {
webPreferences: {
nodeIntegration: true,
enableBlinkFeatures: 'AudioVideoTracks',
enableRemoteModule: true
enableRemoteModule: true,
backgroundThrottling: false
},
width: 150
})