mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 18:41:47 +00:00
This issue is caused by the renderer's adblocker being loaded before the main process's adblocker.
16 lines
405 B
TypeScript
16 lines
405 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 = () => config.get('blocker') !== blockers.InPlayer;
|
|
|
|
export default Object.assign(config, {
|
|
shouldUseBlocklists,
|
|
blockers,
|
|
});
|