Fix for publicServers

This commit is contained in:
Jean Ouina 2020-07-01 00:06:16 +02:00
parent 077f12a96a
commit 1e2a9a5e46
1 changed files with 3 additions and 4 deletions

View File

@ -58,13 +58,12 @@ export default new class V2_PublicServers {
_appendButton() {
let [
classNameScroller
classNametutorialContainer
] = [
BDModules.get(e => e.scroller && e.scrollbarWidth)[0].scroller
Utils.removeDa(BDModules.get(e => e.downloadProgress && e.tutorialContainer)[0].tutorialContainer)
]
if (DOM.query("#bd-pub-li")) return;
const wrapper = BDV2.guildClasses.wrapper.split(" ")[0];
const guilds = DOM.query(`.${wrapper} .${classNameScroller} >:first-child`);
const guilds = DOM.query(`div.${classNametutorialContainer} > div`);
DOM.after(guilds, this.button);
}