aboutsummaryrefslogtreecommitdiffstats
path: root/background_scripts
diff options
context:
space:
mode:
authorStephen Blott2017-09-30 07:22:22 +0100
committerGitHub2017-09-30 07:22:22 +0100
commit0d059c1ac60798598ad6608eca38f6008cc50f53 (patch)
tree0194f5c9869e991777f38fe2345285918f9e0a5c /background_scripts
parent245fd88b58297733765571b4db37ff958f7a32c2 (diff)
parent55fde386c99bae9748212ef66fd57929ffd316a5 (diff)
downloadvimium-0d059c1ac60798598ad6608eca38f6008cc50f53.tar.bz2
Merge pull request #2683 from mrmr1993/inject-css-for-frames
Inject user css into all frames
Diffstat (limited to 'background_scripts')
-rw-r--r--background_scripts/main.coffee5
1 files changed, 2 insertions, 3 deletions
diff --git a/background_scripts/main.coffee b/background_scripts/main.coffee
index 10d383f9..97d8fa65 100644
--- a/background_scripts/main.coffee
+++ b/background_scripts/main.coffee
@@ -262,10 +262,9 @@ selectTab = (direction, {count, tab}) ->
Math.max 0, tabs.length - count
chrome.tabs.update tabs[toSelect].id, active: true
-chrome.tabs.onUpdated.addListener (tabId, changeInfo, tab) ->
- return unless changeInfo.status == "loading" # Only do this once per URL change.
+chrome.webNavigation.onCommitted.addListener ({tabId, frameId}) ->
cssConf =
- allFrames: true
+ frameId: frameId
code: Settings.get("userDefinedLinkHintCss")
runAt: "document_start"
chrome.tabs.insertCSS tabId, cssConf, -> chrome.runtime.lastError