From 6b4742355a20c3b74004ceb3e0422b3873688d93 Mon Sep 17 00:00:00 2001 From: Wliu Date: Mon, 2 May 2016 20:10:44 +0000 Subject: [PATCH] Set background throttling directly --- src/browser/atom-window.coffee | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/browser/atom-window.coffee b/src/browser/atom-window.coffee index 951b89ad9..2f07dd443 100644 --- a/src/browser/atom-window.coffee +++ b/src/browser/atom-window.coffee @@ -24,9 +24,8 @@ class AtomWindow options = show: false title: 'Atom' - - if @isSpec - options.webPreferences = {backgroundThrottling: false} + webPreferences: + backgroundThrottling: not @isSpec # Don't set icon on Windows so the exe's ico will be used as window and # taskbar's icon. See https://github.com/atom/atom/issues/4811 for more.