mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 02:31:45 +00:00
19 lines
464 B
TypeScript
19 lines
464 B
TypeScript
/* eslint-disable @typescript-eslint/await-thenable */
|
|
/* renderer */
|
|
|
|
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, {
|
|
shouldUseBlocklists,
|
|
blockers,
|
|
});
|