From 50615a6f3ebb80cedf1807497a6cd73d12950cdb Mon Sep 17 00:00:00 2001 From: mrmr1993 Date: Fri, 29 Sep 2017 18:38:31 +0100 Subject: Inject custom user styles into all frames This fixes #2594. --- background_scripts/main.coffee | 5 ++--- 1 file 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 -- cgit v1.2.3