feat: explicitly fetch easylist url

This commit is contained in:
amhsirak
2024-12-11 14:14:23 +05:30
parent c2ce3f3387
commit 44880cfce0

View File

@@ -102,7 +102,7 @@ export default class Interpreter extends EventEmitter {
};
}
PlaywrightBlocker.fromPrebuiltAdsAndTracking(fetch).then(blocker => {
PlaywrightBlocker.fromLists(fetch, ['https://easylist.to/easylist/easylist.txt']).then(blocker => {
this.blocker = blocker;
}).catch(err => {
this.log(`Failed to initialize ad-blocker:`, Level.ERROR);