From ba6b3a3ef95b372fc1c6c9a2595cc79bf8a8ef7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Luba=C5=84ski?= Date: Tue, 16 Aug 2022 14:51:08 +0200 Subject: [PATCH] Ensure resolving the promise keeping the old "public" API --- packages/adblocker-webextension/adblocker.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/adblocker-webextension/adblocker.ts b/packages/adblocker-webextension/adblocker.ts index 1c9a1dae2f..0fef9ea9d8 100644 --- a/packages/adblocker-webextension/adblocker.ts +++ b/packages/adblocker-webextension/adblocker.ts @@ -402,10 +402,12 @@ export class WebExtensionBlocker extends FiltersEngine { scripts, styles: '', }); + return; } } await Promise.all(promises); + sendResponse(); }; /**