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

@ -7,7 +7,7 @@ import { PluginConfig } from '../../config/dynamic';
const config = new PluginConfig('adblocker', { enableFront: true });
export const shouldUseBlocklists = async () => await config.get('blocker') !== blockers.InPlayer;
export const shouldUseBlocklists = () => config.get('blocker') !== blockers.InPlayer;
export default Object.assign(config, {
shouldUseBlocklists,