From db2f3e391ca87b1a49ed4c5cfa63917fcb64d9b8 Mon Sep 17 00:00:00 2001 From: achmizs Date: Fri, 1 Feb 2019 18:33:33 -0500 Subject: [PATCH] Disabled page action for all but http(s) --- background.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/background.js b/background.js index 9527931..740c807 100644 --- a/background.js +++ b/background.js @@ -4,7 +4,7 @@ chrome.runtime.onInstalled.addListener(() => { chrome.declarativeContent.onPageChanged.removeRules(undefined, () => { chrome.declarativeContent.onPageChanged.addRules([{ conditions: [ new chrome.declarativeContent.PageStateMatcher({ - pageUrl: { }, + pageUrl: { schemes: [ 'http', 'https' ] }, }) ], actions: [ new chrome.declarativeContent.ShowPageAction() ] }]);