succd-changes #13
					 1 changed files with 9 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -410,6 +410,15 @@ window.addEventListener("load", (_) => {
 | 
			
		|||
        socket.addEventListener("close", (event) => {
 | 
			
		||||
            status.innerHTML = "Offline";
 | 
			
		||||
            status.style = colors.highlightFault;
 | 
			
		||||
 | 
			
		||||
            // Indicate all process values as unknown
 | 
			
		||||
 | 
			
		||||
            [failsafe, highpressure, rp, dp, trough, thigh, volts, mbar].forEach((el) => {
 | 
			
		||||
                if (!el.innerHTML.includes("??")) {
 | 
			
		||||
                    el.innerHTML += "??";
 | 
			
		||||
                }
 | 
			
		||||
            });
 | 
			
		||||
 | 
			
		||||
            if (connected) {
 | 
			
		||||
                console.log("Socket dead, reconnecting...");
 | 
			
		||||
            }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue