Disabled page action for all but http(s)

This commit is contained in:
Said Achmiz 2019-02-01 18:33:33 -05:00
parent abb8c15001
commit db2f3e391c

View File

@ -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() ]
}]);