From 1e2a9a5e462e00924d4771cb26076513e1929809 Mon Sep 17 00:00:00 2001 From: Jean Ouina Date: Wed, 1 Jul 2020 00:06:16 +0200 Subject: [PATCH] Fix for publicServers --- BetterDiscordApp/src/modules/publicServers.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/BetterDiscordApp/src/modules/publicServers.js b/BetterDiscordApp/src/modules/publicServers.js index f73bb31..54900b8 100644 --- a/BetterDiscordApp/src/modules/publicServers.js +++ b/BetterDiscordApp/src/modules/publicServers.js @@ -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); }