Disabled page action for all but http(s)
This commit is contained in:
parent
abb8c15001
commit
db2f3e391c
@ -4,7 +4,7 @@ chrome.runtime.onInstalled.addListener(() => {
|
|||||||
chrome.declarativeContent.onPageChanged.removeRules(undefined, () => {
|
chrome.declarativeContent.onPageChanged.removeRules(undefined, () => {
|
||||||
chrome.declarativeContent.onPageChanged.addRules([{
|
chrome.declarativeContent.onPageChanged.addRules([{
|
||||||
conditions: [ new chrome.declarativeContent.PageStateMatcher({
|
conditions: [ new chrome.declarativeContent.PageStateMatcher({
|
||||||
pageUrl: { },
|
pageUrl: { schemes: [ 'http', 'https' ] },
|
||||||
})
|
})
|
||||||
], actions: [ new chrome.declarativeContent.ShowPageAction() ]
|
], actions: [ new chrome.declarativeContent.ShowPageAction() ]
|
||||||
}]);
|
}]);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user