Przeglądaj źródła

Disabled page action for all but http(s)

master
Said Achmiz 7 lat temu
rodzic
commit
db2f3e391c
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1
    1
      background.js

+ 1
- 1
background.js Wyświetl plik

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

Ładowanie…
Anuluj
Zapisz