Skip to content

Commit 846d88d

Browse files
committed
msg-err update
1 parent b0996f6 commit 846d88d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

chat/chat.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,10 @@ function escapeHtml(text) {
167167
chatScroll()
168168
});
169169

170+
socket.on('message-error', function(err) {
171+
document.location.href = `https://http.cat/${err}`;
172+
})
173+
170174
form.addEventListener('submit', function(e) {
171175
e.preventDefault();
172176
if (input.value) {

0 commit comments

Comments
 (0)