Delete adblock.ts

This commit is contained in:
NodeMixaholic 2023-03-03 07:09:32 -06:00 committed by GitHub
parent 1b6f7f7ed9
commit 20ee97836c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,6 +0,0 @@
const fetchr = require("cross-fetch")
const { ElectronBlocker, fullLists, Requests } = require('@cliqz/adblocker-electron')
let mainWindow: BrowserWindow | null = null;
let blocker = await ElectronBlocker.fromPrebuiltAdsAndTracking(fetchr);
blocker.enableBlockingInSession(mainWindow.webContents.defaultSession);