declarativeNetRequest.getEnabledRulesets
Returns the IDs for the set of activated static rulesets.
Syntax
js
let rulesetIds = await browser.declarativeNetRequest.getEnabledRulesets();
Parameters
This function takes no parameters.
Return value
A Promise
fulfilled with an array of string containing static rulesets IDs. If no rules are active, the array is empty. If the request fails, the promise is rejected with an error message.
Examples
Browser compatibility
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.