mirror of
https://github.com/jech/galene.git
synced 2024-11-09 18:25:58 +01:00
Error handling when attempting chat on closed connection.
This commit is contained in:
parent
667412e6ae
commit
2e63c0f305
1 changed files with 5 additions and 0 deletions
|
@ -1437,6 +1437,11 @@ function handleInput() {
|
|||
me = false;
|
||||
}
|
||||
|
||||
if(!serverConnection || !serverConnection.socket) {
|
||||
displayError("Not connected.");
|
||||
return;
|
||||
}
|
||||
|
||||
let username = getUsername();
|
||||
if(!username) {
|
||||
displayError("Sorry, you're anonymous, you cannot chat");
|
||||
|
|
Loading…
Reference in a new issue