diff options
| author | mrmr1993 | 2017-09-29 18:38:31 +0100 |
|---|---|---|
| committer | mrmr1993 | 2017-09-29 18:39:06 +0100 |
| commit | 50615a6f3ebb80cedf1807497a6cd73d12950cdb (patch) | |
| tree | 92271006d27894856c82a06453f7c51fe8687273 /background_scripts | |
| parent | c18d4f065c9529c62a82bc2a3bd518da318d89ff (diff) | |
| download | vimium-50615a6f3ebb80cedf1807497a6cd73d12950cdb.tar.bz2 | |
Inject custom user styles into all frames
This fixes #2594.
Diffstat (limited to 'background_scripts')
| -rw-r--r-- | background_scripts/main.coffee | 5 |
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 |
