From 622fbd832015dd9a18af17d9df16060261fea3c4 Mon Sep 17 00:00:00 2001 From: Voiture <48459786+Voiture-0@users.noreply.github.com> Date: Sat, 9 Nov 2024 17:06:33 -0500 Subject: [PATCH] Update chat.js --- assets/chat/js/chat.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/chat/js/chat.js b/assets/chat/js/chat.js index 201ce3be..46275847 100644 --- a/assets/chat/js/chat.js +++ b/assets/chat/js/chat.js @@ -418,7 +418,7 @@ class Chat { if (isKeyCode(e, KEYCODES.ESC)) { const activeView = this.getActiveWindow().scrollplugin; // If any menus are open, close them first - if (this.getActiveMenu() !== undefined) ChatMenu.closeMenus(this); + if (this.getActiveMenu()) ChatMenu.closeMenus(this); // If the active window is scrolled up (not pinned), scroll to bottom else if (!activeView.pinned) activeView.scrollBottom(); }