diff options
author | praschke <stel@comfy.monster> | 2023-10-29 20:50:45 +0000 |
---|---|---|
committer | praschke <stel@comfy.monster> | 2023-10-29 20:50:45 +0000 |
commit | 0adf9cef27de2641718116b91a0c7426aac6814e (patch) | |
tree | 1d353ba1db61086442b5e4b792b0310a282af13d /ext/js/background | |
parent | 9c003ec233136690c4efcee15341352400ce145d (diff) |
fix: _getDynamicRules() returns a promise
dynamic rules were never cleared, as the promise is not iterable as expected.
Diffstat (limited to 'ext/js/background')
-rw-r--r-- | ext/js/background/request-builder.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/js/background/request-builder.js b/ext/js/background/request-builder.js index bf770964..03088fac 100644 --- a/ext/js/background/request-builder.js +++ b/ext/js/background/request-builder.js @@ -263,7 +263,7 @@ class RequestBuilder { async _clearDynamicRules() { if (!isObject(chrome.declarativeNetRequest)) { return; } - const rules = this._getDynamicRules(); + const rules = await this._getDynamicRules(); if (rules.length === 0) { return; } |