From d91d9577774a7a0869d039c29ae95809d5a470f1 Mon Sep 17 00:00:00 2001 From: Jonas Hermsmeier Date: Thu, 22 Feb 2018 17:02:08 +0100 Subject: [PATCH] fix(gui): Disable throttling timers when in background This disables Electron throttling timers when not in the foreground. Change-Type: patch --- lib/gui/etcher.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/gui/etcher.js b/lib/gui/etcher.js index eb7da795..f64cf7da 100644 --- a/lib/gui/etcher.js +++ b/lib/gui/etcher.js @@ -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)