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();