aboutsummaryrefslogtreecommitdiffstats
path: root/background_scripts/main.coffee
diff options
context:
space:
mode:
authorJez Ng2012-10-24 15:33:56 -0400
committerJez Ng2012-10-24 15:33:56 -0400
commit647fd97bef55d2371e87f0cd418ddff62f36800e (patch)
treee8dc20c1ebac8653d47a3fe6ca5c01819674a700 /background_scripts/main.coffee
parentf3f80eed2a3a58327e4361c7deb57d87cab4b4bd (diff)
downloadvimium-647fd97bef55d2371e87f0cd418ddff62f36800e.tar.bz2
Use insertCSS() API instead of manually created style element.
For some reason addCssToPage seemed to break on Chrome 24. Closes #676.
Diffstat (limited to 'background_scripts/main.coffee')
-rw-r--r--background_scripts/main.coffee4
1 files changed, 4 insertions, 0 deletions
diff --git a/background_scripts/main.coffee b/background_scripts/main.coffee
index a3857d61..b56d391c 100644
--- a/background_scripts/main.coffee
+++ b/background_scripts/main.coffee
@@ -318,6 +318,10 @@ updateScrollPosition = (tab, scrollX, scrollY) ->
chrome.tabs.onUpdated.addListener((tabId, changeInfo, tab) ->
return unless changeInfo.status == "loading" # only do this once per URL change
+ chrome.tabs.insertCSS tabId,
+ allFrames: true
+ code: Settings.get("userDefinedLinkHintCss")
+ runAt: "document_start"
updateOpenTabs(tab)
updateActiveState(tabId))