Frontend: Only log in session.js if debug is true
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
parent
7d6e8c937e
commit
dd6f4f3fc4
1 changed files with 3 additions and 1 deletions
|
@ -192,9 +192,11 @@ export default class Session {
|
|||
try {
|
||||
Socket.send(JSON.stringify(clientInfo));
|
||||
} catch (e) {
|
||||
if(this.config.debug) {
|
||||
console.log("session: can't use websocket, not connected (yet)");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
login(username, password, token) {
|
||||
this.deleteId();
|
||||
|
|
Loading…
Reference in a new issue