mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
fixed collapsing chat when clicking the navbar
This commit is contained in:
parent
452014019f
commit
4b06b43b43
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue