fix: apply fix from eslint

This commit is contained in:
JellyBrick
2023-09-04 03:50:44 +09:00
parent 68d985acba
commit 72c8c49edf
15 changed files with 25 additions and 8 deletions

View File

@ -1,14 +1,14 @@
import { BrowserWindow } from 'electron';
import { loadAdBlockerEngine } from './blocker';
import config from './config';
import { shouldUseBlocklists } from './config';
import type { ConfigType } from '../../config/dynamic';
type AdBlockOptions = ConfigType<'adblocker'>;
export default async (win: BrowserWindow, options: AdBlockOptions) => {
if (await config.shouldUseBlocklists()) {
if (await shouldUseBlocklists()) {
loadAdBlockerEngine(
win.webContents.session,
options.cache,