mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 18:41:47 +00:00
16 lines
417 B
TypeScript
16 lines
417 B
TypeScript
/* 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 shouldUseBlocklists = async () => await config.get('blocker') !== blockers.InPlayer;
|
|
|
|
export default Object.assign(config, {
|
|
shouldUseBlocklists,
|
|
blockers,
|
|
});
|