Frontend: Only log in session.js if debug is true

Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
Michael Mayer 2020-07-02 09:28:38 +02:00
parent 7d6e8c937e
commit dd6f4f3fc4

View file

@ -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();