mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-13 03:11:46 +00:00
fix: remove xo, migration to eslint
This commit is contained in:
@ -1,10 +1,10 @@
|
||||
const config = require("./config");
|
||||
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");
|
||||
}
|
||||
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');
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user