Skip to content

Commit

Permalink
Fix adblocker preprocessor environment
Browse files Browse the repository at this point in the history
  • Loading branch information
chrmod committed Sep 26, 2024
1 parent 7b20056 commit 685e20c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions extension-manifest-v3/src/utils/engines.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`);
Expand Down

0 comments on commit 685e20c

Please sign in to comment.