diff --git a/browser_ext/inject.js b/browser_ext/inject.js index 7d36ae7a4..033bdd472 100644 --- a/browser_ext/inject.js +++ b/browser_ext/inject.js @@ -41,7 +41,7 @@ if (x != undefined) { rightCollapseButton = x; - x.addEventListener("mouseup", () => { + x.addEventListener("click", () => { let y = findChatDiv(); if (parseInt(y.style.width) == 0) { @@ -78,6 +78,8 @@ let x = findNavBar(); x.addEventListener("mouseup", () => { + console.log(isCollapsed) + if (!isCollapsed) { let collapse = findRightCollapse(); collapse.click();