mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 02:31:45 +00:00
11 lines
310 B
JavaScript
11 lines
310 B
JavaScript
const config = require("./config");
|
|
|
|
module.exports = async () => {
|
|
if (await config.shouldUseBlocklists()) {
|
|
// Preload adblocker to inject scripts/styles
|
|
require("@cliqz/adblocker-electron-preload");
|
|
} else if ((await config.get("blocker")) === config.blockers.InPlayer) {
|
|
require("./inject");
|
|
}
|
|
};
|