mirror of
https://github.com/movie-web/extension.git
synced 2025-09-13 17:03:25 +00:00
mr feedback
This commit is contained in:
@@ -108,3 +108,10 @@ export const setDynamicRules = async (body: DynamicRule) => {
|
||||
if (browser.runtime.lastError?.message) throw new Error(browser.runtime.lastError.message);
|
||||
}
|
||||
};
|
||||
|
||||
export const removeDynamicRules = async (ruleIds: number[]) => {
|
||||
await (chrome || browser).declarativeNetRequest.updateDynamicRules({
|
||||
removeRuleIds: ruleIds,
|
||||
});
|
||||
if ((chrome || browser).runtime.lastError?.message) throw new Error((chrome || browser).runtime.lastError.message);
|
||||
};
|
||||
|
Reference in New Issue
Block a user