hotfix: hotfix for #1267

This commit is contained in:
JellyBrick
2023-10-08 00:39:36 +09:00
parent 2d69dfd333
commit c002263c3b
5 changed files with 15 additions and 8 deletions

View File

@ -1,15 +1,12 @@
/* eslint-disable @typescript-eslint/await-thenable */
/* renderer */
import { blockers } from './blocker-types';
import { PluginConfig } from '../../config/dynamic';
const config = new PluginConfig('adblocker', { enableFront: true });
export const blockers = {
WithBlocklists: 'With blocklists',
InPlayer: 'In player',
};
export const shouldUseBlocklists = async () => await config.get('blocker') !== blockers.InPlayer;
export default Object.assign(config, {