mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-04-24 15:19:17 -05:00
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:
parent
4188f62310
commit
8431f3fc10
|
|
@ -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});
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user