hotfix(adblocker): fix ipcRenderer.sendSync() with ...

This issue is caused by the renderer's adblocker being loaded before the main process's adblocker.
This commit is contained in:
JellyBrick
2023-10-11 02:01:44 +09:00
parent b475f780ff
commit c512f13009
4 changed files with 33 additions and 33 deletions

View File

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