From 58fcaa8245811922d46ef7e7f3855904eba44583 Mon Sep 17 00:00:00 2001 From: Silver Kuusik Date: Sun, 8 Jul 2018 20:56:49 +0200 Subject: [PATCH] remove console logs --- assets/js/sumorobot.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/assets/js/sumorobot.js b/assets/js/sumorobot.js index 1f19b67..2e582ef 100755 --- a/assets/js/sumorobot.js +++ b/assets/js/sumorobot.js @@ -40,7 +40,6 @@ Sumorobot.prototype.connect = function() { }; // When the WebSocket closes this.websocket.onclose = function(evt) { - console.log("INFO websocket disconnected"); // Clear the pinging clearInterval(self.watchdogTimer); // Try to recnnect to the sumorobot @@ -72,10 +71,8 @@ Sumorobot.prototype.send = function(msg, val) { // https://developer.mozilla.org/en-US/docs/Web/API/WebSocket if (this.websocket.readyState == 1) { if (val === 'undefined') { - console.log("no val") this.websocket.send(`{"to": "sumo-${this.robotId}@00000514", "cmd": "${msg}"}`); } else { - console.log("val") this.websocket.send(`{"to": "sumo-${this.robotId}@00000514", "cmd": "${msg}", "val": "${val}"}`); } }