fixed collapsing chat when clicking the navbar

This commit is contained in:
fourtf 2018-05-30 18:25:54 +02:00
parent 452014019f
commit 4b06b43b43

View file

@ -41,7 +41,7 @@
if (x != undefined) { if (x != undefined) {
rightCollapseButton = x; rightCollapseButton = x;
x.addEventListener("mouseup", () => { x.addEventListener("click", () => {
let y = findChatDiv(); let y = findChatDiv();
if (parseInt(y.style.width) == 0) { if (parseInt(y.style.width) == 0) {
@ -78,6 +78,8 @@
let x = findNavBar(); let x = findNavBar();
x.addEventListener("mouseup", () => { x.addEventListener("mouseup", () => {
console.log(isCollapsed)
if (!isCollapsed) { if (!isCollapsed) {
let collapse = findRightCollapse(); let collapse = findRightCollapse();
collapse.click(); collapse.click();