forked from marva/sumorobot-web
refactor comment
This commit is contained in:
@@ -46,7 +46,7 @@ Sumorobot.prototype.connect = function() {
|
|||||||
/* to have access to this object */
|
/* to have access to this object */
|
||||||
var self = this;
|
var self = this;
|
||||||
this.websocket = new WebSocket(this.wsUri);
|
this.websocket = new WebSocket(this.wsUri);
|
||||||
/* setup connection watchdog */
|
/* setup connection watchdog interval */
|
||||||
setInterval(function() {
|
setInterval(function() {
|
||||||
if (watchdogCounter == 0) {
|
if (watchdogCounter == 0) {
|
||||||
$("#battery").removeClass("connected");
|
$("#battery").removeClass("connected");
|
||||||
|
Reference in New Issue
Block a user