Merge pull request #203 from th-ch/downloader-plugin-playlist

Add playlist feature in downloader plugin + custom menus in plugin system
This commit is contained in:
th-ch
2021-03-24 22:39:50 +01:00
committed by GitHub
9 changed files with 212 additions and 47 deletions

View File

@ -24,6 +24,10 @@ function setOptions(plugin, options) {
});
}
function getOptions(plugin) {
return store.get("plugins")[plugin];
}
function enable(plugin) {
setOptions(plugin, { enabled: true });
}
@ -38,4 +42,5 @@ module.exports = {
enable,
disable,
setOptions,
getOptions,
};