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,7 +192,9 @@ export default class Session {
try {
Socket.send(JSON.stringify(clientInfo));
} catch (e) {
console.log("session: can't use websocket, not connected (yet)");
if(this.config.debug) {
console.log("session: can't use websocket, not connected (yet)");
}
}
}