From e95d1e44c11358602bdb217e16aaf029de242de7 Mon Sep 17 00:00:00 2001 From: Julia Lange Date: Fri, 2 Feb 2024 18:56:15 -0800 Subject: [PATCH] Clean querySelectors and unused variables --- chatlessdisc.plugin.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/chatlessdisc.plugin.js b/chatlessdisc.plugin.js index c77350f..d13efb0 100644 --- a/chatlessdisc.plugin.js +++ b/chatlessdisc.plugin.js @@ -50,7 +50,7 @@ function contractSidebar() { } function addChannelClass() { - let dms = document.querySelector("ul[aria-label='Direct Messages'"); + let dms = document.querySelector("ul[aria-label='Direct Messages']"); if(dms == null) return ""; let friendsElement = dms.childNodes[1] if(friendsElement == null) return ""; @@ -64,7 +64,7 @@ function addChannelClass() { } function clickPopOut() { - let popOutButton = document.querySelector("button[aria-label='Pop Out'"); + let popOutButton = document.querySelector("button[aria-label='Pop Out']"); if(popOutButton == null) return; popOutButton.click(); } @@ -72,7 +72,6 @@ function clickPopOut() { class chatlessdisc { constructor() { - // this.channelClassName = ""; this.channelActionsModule = BdApi.findModuleByProps('selectChannel'); }