From 0adf9cef27de2641718116b91a0c7426aac6814e Mon Sep 17 00:00:00 2001 From: praschke Date: Sun, 29 Oct 2023 20:50:45 +0000 Subject: fix: _getDynamicRules() returns a promise dynamic rules were never cleared, as the promise is not iterable as expected. --- ext/js/background/request-builder.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext') 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; } -- cgit v1.2.3