aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormrmr19932017-09-29 18:38:31 +0100
committermrmr19932017-09-29 18:39:06 +0100
commit50615a6f3ebb80cedf1807497a6cd73d12950cdb (patch)
tree92271006d27894856c82a06453f7c51fe8687273
parentc18d4f065c9529c62a82bc2a3bd518da318d89ff (diff)
downloadvimium-50615a6f3ebb80cedf1807497a6cd73d12950cdb.tar.bz2
Inject custom user styles into all frames
This fixes #2594.
-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 8afecd4f..8eb6e57d 100644
--- a/background_scripts/main.coffee
+++ b/background_scripts/main.coffee
@@ -263,10 +263,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