aboutsummaryrefslogtreecommitdiff
path: root/ext/js/background/request-builder.js
diff options
context:
space:
mode:
authorpraschke <stel@comfy.monster>2023-10-29 20:50:45 +0000
committerpraschke <stel@comfy.monster>2023-10-29 20:50:45 +0000
commit0adf9cef27de2641718116b91a0c7426aac6814e (patch)
tree1d353ba1db61086442b5e4b792b0310a282af13d /ext/js/background/request-builder.js
parent9c003ec233136690c4efcee15341352400ce145d (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/request-builder.js')
-rw-r--r--ext/js/background/request-builder.js2
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; }