mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 18:41:47 +00:00
22 lines
582 B
JavaScript
22 lines
582 B
JavaScript
const Store = require("electron-store");
|
|
const plugins = require("./plugins");
|
|
|
|
const store = new Store({
|
|
defaults: {
|
|
"window-size": {
|
|
width : 1100,
|
|
height: 550
|
|
},
|
|
url : "https://music.youtube.com",
|
|
plugins: ["navigation", "shortcuts", "adblocker"]
|
|
}
|
|
});
|
|
|
|
module.exports = {
|
|
store : store,
|
|
isPluginEnabled : plugin => plugins.isEnabled(store, plugin),
|
|
getEnabledPlugins: () => plugins.getEnabledPlugins(store),
|
|
enablePlugin : plugin => plugins.enablePlugin(store, plugin),
|
|
disablePlugin : plugin => plugins.disablePlugin(store, plugin)
|
|
};
|