Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
chrmod committed Nov 19, 2024
1 parent fee3f0f commit 05fd0a5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/background/adblocker.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,9 @@ export async function reloadMainEngine() {
await engines.create(engines.MAIN_ENGINE);
console.info('[adblocker] Main engine reloaded with no filters');
}
contentScripts.clear();
if (__PLATFORM__ === 'firefox') {
contentScripts.clear();
}
}

let updating = false;
Expand Down Expand Up @@ -172,6 +174,7 @@ const contentScripts = (() => {
const map = new Map();
return {
set(key, value) {
this.delete(key);
map.set(key, value);
},
has(key) {
Expand Down

0 comments on commit 05fd0a5

Please sign in to comment.