Adds show/hide channels sidebar button to Discord Web App
< Feedback on Discord Toggle Channels List
Very good but we can't click on a server button without toggling so I advise you to change const addListenersToToggleButtons to :const addListenersToToggleButtons = function() { toggleButtons.forEach(function(elem) { document.getElementsByClassName(elem)[0].addEventListener('click', function(e) { if (e.target == document.querySelector("#toggleChannelsBtn")) { toggleVisibility(); cheveronDirection(); } }) }); }
Thanks for the suggestion. I will take a look and try to fix this in 1.9Thanks
Sign in to post a reply.
Very good but we can't click on a server button without toggling so I advise you to change const addListenersToToggleButtons to :
const addListenersToToggleButtons = function() {
toggleButtons.forEach(function(elem) {
document.getElementsByClassName(elem)[0].addEventListener('click', function(e) {
if (e.target == document.querySelector("#toggleChannelsBtn")) {
toggleVisibility();
cheveronDirection();
}
})
});
}