Skip to content

Commit

Permalink
Disable background throttling
Browse files Browse the repository at this point in the history
Reference: #1720 (comment)

I actually think we want backgroundThrottling: false so our timers and intervals aren't throttled when the app is backgrounded.
  • Loading branch information
feross committed Nov 4, 2020
1 parent 38d9c4c commit 9e0d91f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/main/windows/about.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ function init () {
webPreferences: {
nodeIntegration: true,
enableBlinkFeatures: 'AudioVideoTracks',
enableRemoteModule: true
enableRemoteModule: true,
backgroundThrottling: false
},
width: 300
})
Expand Down
3 changes: 2 additions & 1 deletion src/main/windows/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion src/main/windows/webtorrent.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ function init () {
webPreferences: {
nodeIntegration: true,
enableBlinkFeatures: 'AudioVideoTracks',
enableRemoteModule: true
enableRemoteModule: true,
backgroundThrottling: false
},
width: 150
})
Expand Down

0 comments on commit 9e0d91f

Please sign in to comment.