forked from marva/sumorobot-web
refactor comment
This commit is contained in:
parent
2840de20b8
commit
e1c76b80cb
@ -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");
|
||||||
|
Loading…
Reference in New Issue
Block a user