mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 02:31:45 +00:00
12 lines
381 B
TypeScript
12 lines
381 B
TypeScript
import config from './config';
|
|
|
|
export default async () => {
|
|
if (await config.shouldUseBlocklists()) {
|
|
// Preload adblocker to inject scripts/styles
|
|
require('@cliqz/adblocker-electron-preload');
|
|
// eslint-disable-next-line @typescript-eslint/await-thenable
|
|
} else if ((await config.get('blocker')) === config.blockers.InPlayer) {
|
|
require('./inject.js');
|
|
}
|
|
};
|