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
BCD tables only load in the browser