Przeglądaj źródła

Disabled page action for all but http(s)

master
Said Achmiz 6 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

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

Ładowanie…
Anuluj
Zapisz