From 7e51e97faa4bc407ec411dd47572b1e36ad2be1e Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Sun, 2 Nov 2014 12:53:15 +0000 Subject: Fix refresh open tabs and state. Fixes refresh of state bug introduced in 046650ba22ac12ebb18d1eb109fe694016eb77c0. --- background_scripts/main.coffee | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/background_scripts/main.coffee b/background_scripts/main.coffee index 898f46f1..4f2edfc5 100644 --- a/background_scripts/main.coffee +++ b/background_scripts/main.coffee @@ -393,10 +393,9 @@ chrome.tabs.onUpdated.addListener (tabId, changeInfo, tab) -> allFrames: true code: Settings.get("userDefinedLinkHintCss") runAt: "document_start" - chrome.tabs.insertCSS tabId, cssConf, -> - if not chrome.runtime.lastError - updateOpenTabs(tab) - updateActiveState(tabId) + chrome.tabs.insertCSS tabId, cssConf, -> chrome.runtime.lastError + updateOpenTabs(tab) + updateActiveState(tabId) chrome.tabs.onAttached.addListener (tabId, attachedInfo) -> # We should update all the tabs in the old window and the new window. -- cgit v1.2.3