Просмотр исходного кода

Disabled page action for all but http(s)

master
Said Achmiz 7 лет назад
Родитель
Сommit
db2f3e391c
1 измененных файлов: 1 добавлений и 1 удалений
  1. 1
    1
      background.js

+ 1
- 1
background.js Просмотреть файл

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

Загрузка…
Отмена
Сохранить