From cb53a64cde69e5b585abed4d742b2462533f89bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Thu, 1 Apr 2021 14:05:24 -0400 Subject: [PATCH] fix: acp crash --- public/src/sockets.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/src/sockets.js b/public/src/sockets.js index 0117710faf..648d9071d3 100644 --- a/public/src/sockets.js +++ b/public/src/sockets.js @@ -124,11 +124,11 @@ socket = window.socket; if (reconnecting) { var reconnectEl = $('#reconnect'); - var reconnectAlert = document.getElementById('reconnect-alert'); + var reconnectAlert = $('#reconnect-alert'); reconnectEl.tooltip('destroy'); reconnectEl.html(''); - reconnectAlert.classList.add('hide'); + reconnectAlert.addClass('hide'); reconnecting = false; reJoinCurrentRoom();