Sfoglia il codice sorgente

Disabled page action for all but http(s)

master
Said Achmiz 6 anni fa
parent
commit
db2f3e391c
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1
    1
      background.js

+ 1
- 1
background.js Vedi 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() ]
}]);

Loading…
Annulla
Salva