Update PluginRepo.plugin.js

This commit is contained in:
Mirco Wittrien 2019-04-07 21:23:38 +02:00
parent 596916fbb7
commit 5f76694042
1 changed files with 8 additions and 2 deletions

View File

@ -312,7 +312,13 @@ class PluginRepo {
clearInterval(this.updateInterval); clearInterval(this.updateInterval);
clearTimeout(this.loading.timeout); clearTimeout(this.loading.timeout);
BDFDB.removeEles("iframe.discordSanxbox",".pluginrepo-notice",".bd-pluginrepobutton",".pluginrepo-loadingicon",BDFDB.dotCN.app + " > .repo-loadingwrapper:empty"); BDFDB.removeEles(".pluginrepo-notice",".bd-pluginrepobutton",".pluginrepo-loadingicon",BDFDB.dotCN.app + " > .repo-loadingwrapper:empty");
var frame = document.querySelector("iframe.discordSandbox");
if (frame) {
window.removeEventListener("message", frame.messageReceived);
frame.remove();
}
BDFDB.unloadMessage(this); BDFDB.unloadMessage(this);
} }
@ -568,7 +574,7 @@ class PluginRepo {
} }
loadPlugins () { loadPlugins () {
BDFDB.removeEles("iframe.discordSanxbox",".pluginrepo-loadingicon"); BDFDB.removeEles("iframe.discordSandbox",".pluginrepo-loadingicon");
var getPluginInfo, createFrame, runInFrame; var getPluginInfo, createFrame, runInFrame;
var frame, framerunning = false, framequeue = [], outdated = 0, i = 0; var frame, framerunning = false, framequeue = [], outdated = 0, i = 0;
var tags = ["getName", "getVersion", "getAuthor", "getDescription"]; var tags = ["getName", "getVersion", "getAuthor", "getDescription"];