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:
parent
38d9c4c504
commit
9e0d91f144
3 changed files with 6 additions and 3 deletions
|
|
@ -27,7 +27,8 @@ function init () {
|
|||
webPreferences: {
|
||||
nodeIntegration: true,
|
||||
enableBlinkFeatures: 'AudioVideoTracks',
|
||||
enableRemoteModule: true
|
||||
enableRemoteModule: true,
|
||||
backgroundThrottling: false
|
||||
},
|
||||
width: 300
|
||||
})
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -27,7 +27,8 @@ function init () {
|
|||
webPreferences: {
|
||||
nodeIntegration: true,
|
||||
enableBlinkFeatures: 'AudioVideoTracks',
|
||||
enableRemoteModule: true
|
||||
enableRemoteModule: true,
|
||||
backgroundThrottling: false
|
||||
},
|
||||
width: 150
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue