Adblocker - advanced options (caching or not, additional lists)

This commit is contained in:
TC
2020-12-03 19:02:43 +01:00
parent 7b20b9339d
commit b94d0d4e8b
2 changed files with 27 additions and 9 deletions

View File

@ -1,2 +1,7 @@
const { loadAdBlockerEngine } = require("./blocker");
module.exports = (win) => loadAdBlockerEngine(win.webContents.session);
module.exports = (win, options) =>
loadAdBlockerEngine(
win.webContents.session,
options.cache,
options.additionalBlockLists
);