disable background throttling in all windows

This commit is contained in:
Feross Aboukhadijeh
2017-02-03 02:04:17 -08:00
parent 4937f61199
commit 2f4fe3e521
2 changed files with 5 additions and 3 deletions

View File

@@ -13,6 +13,7 @@ const config = require('../../config')
function init () {
const win = webtorrent.win = new electron.BrowserWindow({
backgroundColor: '#1E1E1E',
backgroundThrottling: false, // do not throttle animations/timers when page is background
center: true,
fullscreen: false,
fullscreenable: false,