Disable battle chat upon disconnection (#1489)

- apply same "You are disconnected and cannot chat" message to battles upon disconnecting from a server.  Just a tiny pet peeve when testing code on localhost.
This commit is contained in:
Charlie Kobayashi 2020-04-09 19:45:23 -04:00 committed by GitHub
parent 4188f62310
commit 8431f3fc10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -518,6 +518,7 @@ function toId() {
self.rooms[''].updateFormats();
$('.pm-log-add form').html('<small>You are disconnected and cannot chat.</small>');
$('.chat-log-add').html('<small>You are disconnected and cannot chat.</small>');
$('.battle-log-add').html('<small>You are disconnected and cannot chat.</small>');
self.reconnectPending = (message || true);
if (!self.popups.length) self.addPopup(ReconnectPopup, {message: message});