diff options
| author | Jez Ng | 2012-10-24 15:33:56 -0400 |
|---|---|---|
| committer | Jez Ng | 2012-10-24 15:33:56 -0400 |
| commit | 647fd97bef55d2371e87f0cd418ddff62f36800e (patch) | |
| tree | e8dc20c1ebac8653d47a3fe6ca5c01819674a700 /background_scripts/main.coffee | |
| parent | f3f80eed2a3a58327e4361c7deb57d87cab4b4bd (diff) | |
| download | vimium-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.coffee | 4 |
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)) |
