Initial commit - app + 4 plugins

This commit is contained in:
TC
2019-04-19 20:12:36 +02:00
commit 8787b5c175
31 changed files with 7878 additions and 0 deletions

21
store/index.js Normal file
View File

@ -0,0 +1,21 @@
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", "no-google-login"]
}
});
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)
};