From 685e20c7230957f6ba88553a2c56e844b31d9267 Mon Sep 17 00:00:00 2001 From: Krzysztof Modras Date: Thu, 26 Sep 2024 16:35:00 +0200 Subject: [PATCH] Fix adblocker preprocessor environment --- extension-manifest-v3/src/utils/engines.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/extension-manifest-v3/src/utils/engines.js b/extension-manifest-v3/src/utils/engines.js index da9b98769..cf9ee905d 100644 --- a/extension-manifest-v3/src/utils/engines.js +++ b/extension-manifest-v3/src/utils/engines.js @@ -456,6 +456,8 @@ export function replace(name, engineOrEngines) { const engines = [].concat(engineOrEngines); const engine = engines.length > 1 ? FiltersEngine.merge(engines) : engines[0]; + engine.updateEnv(ENV); + saveToMemory(name, engine); saveToStorage(name).catch(() => { console.error(`[engines] Failed to save engine "${name}" to storage`);