mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 02:31:45 +00:00
fix: remove xo, migration to eslint
This commit is contained in:
@ -1,30 +1,31 @@
|
||||
const defaultConfig = require("./defaults");
|
||||
const plugins = require("./plugins");
|
||||
const store = require("./store");
|
||||
const { restart } = require("../providers/app-controls");
|
||||
const defaultConfig = require('./defaults');
|
||||
const plugins = require('./plugins');
|
||||
const store = require('./store');
|
||||
|
||||
const { restart } = require('../providers/app-controls');
|
||||
|
||||
const set = (key, value) => {
|
||||
store.set(key, value);
|
||||
store.set(key, value);
|
||||
};
|
||||
|
||||
function setMenuOption(key, value) {
|
||||
set(key, value);
|
||||
if (store.get("options.restartOnConfigChanges")) restart();
|
||||
set(key, value);
|
||||
if (store.get('options.restartOnConfigChanges')) {
|
||||
restart();
|
||||
}
|
||||
}
|
||||
|
||||
const get = (key) => {
|
||||
return store.get(key);
|
||||
};
|
||||
const get = (key) => store.get(key);
|
||||
|
||||
module.exports = {
|
||||
defaultConfig,
|
||||
get,
|
||||
set,
|
||||
setMenuOption,
|
||||
edit: () => store.openInEditor(),
|
||||
watch: (cb) => {
|
||||
store.onDidChange("options", cb);
|
||||
store.onDidChange("plugins", cb);
|
||||
},
|
||||
plugins,
|
||||
defaultConfig,
|
||||
get,
|
||||
set,
|
||||
setMenuOption,
|
||||
edit: () => store.openInEditor(),
|
||||
watch(cb) {
|
||||
store.onDidChange('options', cb);
|
||||
store.onDidChange('plugins', cb);
|
||||
},
|
||||
plugins,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user