declarativeNetRequest.getEnabledRulesets
返回已启用的静态规则集的 ID。
语法
js
let rulesetIds = await browser.declarativeNetRequest.getEnabledRulesets();
参数
此函数不接受任何参数。
返回值
一个 Promise
,其会兑现一个包含静态规则集 ID 的字符串数组。如果没有启用的规则,则数组为空。如果请求失败,promise 将以错误消息拒绝。
示例
浏览器兼容性
Report problems with this compatibility data on GitHubdesktop | mobile | ||||||
---|---|---|---|---|---|---|---|
getEnabledRulesets |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.