Merge pull request #384 from mwittrien/patch-13

fix public servers issue
This commit is contained in:
Zack 2020-07-17 09:43:50 -04:00 committed by GitHub
commit 090f480fe4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 7 deletions

File diff suppressed because one or more lines are too long

2
js/main.min.js vendored

File diff suppressed because one or more lines are too long

View File

@ -54,8 +54,8 @@ export default new class V2_PublicServers {
_appendButton() {
if (DOM.query("#bd-pub-li")) return;
const wrapper = BDV2.guildClasses.wrapper.split(" ")[0];
const guilds = DOM.query(`.${wrapper} .scroller-2FKFPG >:first-child`);
DOM.after(guilds, this.button);
const guilds = DOM.query(`.${wrapper} .scroller-2TZvBN >:first-child`);
if (guilds) DOM.after(guilds, this.button);
}
addButton() {
@ -70,6 +70,7 @@ export default new class V2_PublicServers {
removeButton() {
this.guildPatch();
delete this.guildPatch;
DOM.query("#bd-pub-li").remove();
const button = DOM.query("#bd-pub-li");
if (button) button.remove();
}
};
};