From bdb0ece33b1e3925430e24817a36ec364624c766 Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Sun, 21 Oct 2018 12:26:49 +0200 Subject: [PATCH] fix --- Plugins/ShowHiddenChannels/ShowHiddenChannels.plugin.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Plugins/ShowHiddenChannels/ShowHiddenChannels.plugin.js b/Plugins/ShowHiddenChannels/ShowHiddenChannels.plugin.js index 15db669020..014ffa8258 100644 --- a/Plugins/ShowHiddenChannels/ShowHiddenChannels.plugin.js +++ b/Plugins/ShowHiddenChannels/ShowHiddenChannels.plugin.js @@ -83,7 +83,7 @@ class ShowHiddenChannels { getDescription () {return "Displays channels that are hidden from you by role restrictions.";} - getVersion () {return "2.2.9";} + getVersion () {return "2.3.0";} getAuthor () {return "DevilBro";} @@ -202,7 +202,6 @@ class ShowHiddenChannels { } displayHiddenChannels () { - return; var serverObj = BDFDB.getSelectedServer(); if (serverObj) { var serverID = serverObj.id; @@ -512,7 +511,7 @@ class ShowHiddenChannels { var channelList = document.querySelector(BDFDB.dotCNS.channels + BDFDB.dotCN.scroller); if (channelList && category) { category.remove(); - let count = (parseInt(channelList).lastChild.previousSibling.className.split("-")[1])+1); + let count = parseInt(channelList.lastChild.previousSibling.className.split("-")[1])+1; category.attr("class", "container-" + count + " container-hidden"); console.log(category); channelList.insertBefore(category,channelList.lastChild);