aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Blott2014-11-02 12:53:15 +0000
committerStephen Blott2014-11-02 12:53:15 +0000
commit7e51e97faa4bc407ec411dd47572b1e36ad2be1e (patch)
tree9741483fb1ca23c1e6d6affb647a673513439ac3
parent623befe1a878d04a5d3b5ce57358ab81ee4faac4 (diff)
downloadvimium-7e51e97faa4bc407ec411dd47572b1e36ad2be1e.tar.bz2
Fix refresh open tabs and state.
Fixes refresh of state bug introduced in 046650ba22ac12ebb18d1eb109fe694016eb77c0.
-rw-r--r--background_scripts/main.coffee7
1 files 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.