Update PluginRepo.plugin.js
This commit is contained in:
parent
0442c1aa72
commit
26cdd3107e
|
@ -335,7 +335,7 @@ var PluginRepo = (_ => {
|
||||||
return class PluginRepo {
|
return class PluginRepo {
|
||||||
getName () {return "PluginRepo";}
|
getName () {return "PluginRepo";}
|
||||||
|
|
||||||
getVersion () {return "2.0.0";}
|
getVersion () {return "2.0.1";}
|
||||||
|
|
||||||
getAuthor () {return "DevilBro";}
|
getAuthor () {return "DevilBro";}
|
||||||
|
|
||||||
|
@ -503,6 +503,13 @@ var PluginRepo = (_ => {
|
||||||
if (this.started) return;
|
if (this.started) return;
|
||||||
BDFDB.PluginUtils.init(this);
|
BDFDB.PluginUtils.init(this);
|
||||||
|
|
||||||
|
let oldfavorites = BDFDB.DataUtils.load(this, "favorites"); // REMOVE 26.07.2020
|
||||||
|
if (BDFDB.ObjectUtils.is(oldfavorites) && Object.keys(oldfavorites).length) {
|
||||||
|
let newfavorites = [];
|
||||||
|
for (let url of oldfavorites) if (oldfavorites[url]) newfavorites.push(url);
|
||||||
|
BDFDB.DataUtils.save(newfavorites, this, "favorites");
|
||||||
|
}
|
||||||
|
|
||||||
this.forceUpdateAll();
|
this.forceUpdateAll();
|
||||||
|
|
||||||
this.loadPlugins();
|
this.loadPlugins();
|
||||||
|
@ -520,13 +527,6 @@ var PluginRepo = (_ => {
|
||||||
BDFDB.TimeUtils.clear(updateInterval);
|
BDFDB.TimeUtils.clear(updateInterval);
|
||||||
BDFDB.TimeUtils.clear(loading.timeout);
|
BDFDB.TimeUtils.clear(loading.timeout);
|
||||||
|
|
||||||
let oldfavorites = BDFDB.DataUtils.load(this, "favorites"); // REMOVE 26.07.2020
|
|
||||||
if (BDFDB.ObjectUtils.is(oldfavorites) && Object.keys(oldfavorites).length) {
|
|
||||||
let newfavorites = [];
|
|
||||||
for (let url of oldfavorites) if (oldfavorites[url]) newfavorites.push(url);
|
|
||||||
BDFDB.DataUtils.save(newfavorites, this, "favorites");
|
|
||||||
}
|
|
||||||
|
|
||||||
this.forceUpdateAll();
|
this.forceUpdateAll();
|
||||||
|
|
||||||
BDFDB.DOMUtils.remove(".bd-pluginrepobutton", ".pluginrepo-notice", ".pluginrepo-loadingicon");
|
BDFDB.DOMUtils.remove(".bd-pluginrepobutton", ".pluginrepo-notice", ".pluginrepo-loadingicon");
|
||||||
|
|
Loading…
Reference in New Issue