Remove old js iteration
This commit is contained in:
		| @@ -118,9 +118,7 @@ | |||||||
|               this.psi.setMinValue(0); // Prefer setter over gauge.minValue = 0 |               this.psi.setMinValue(0); // Prefer setter over gauge.minValue = 0 | ||||||
|               this.psi.animationSpeed = 32; // set animation speed (32 is default value) |               this.psi.animationSpeed = 32; // set animation speed (32 is default value) | ||||||
|               this.psi.set(0); // set actual value |               this.psi.set(0); // set actual value | ||||||
|               this.maxframes=data.length; |  | ||||||
|               setInterval(this.iterate, 100); |  | ||||||
|                |  | ||||||
|               // Set up websocket connection |               // Set up websocket connection | ||||||
|             this.sock = new WebSocket("wss://" + window.location.hostname + "/ws"); |             this.sock = new WebSocket("wss://" + window.location.hostname + "/ws"); | ||||||
|             this.sock.addEventListener('open', function(event) { this.gotWsOpen(event); }); |             this.sock.addEventListener('open', function(event) { this.gotWsOpen(event); }); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user