浏览代码

Disabled page action for all but http(s)

master
Said Achmiz 6 年前
父节点
当前提交
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() ]
}]); }]);

正在加载...
取消
保存