This commit is contained in:
Sem van der Hoeven
2023-06-08 12:08:43 +02:00
parent 9826afbd49
commit b22d8228aa

View File

@@ -319,6 +319,7 @@
function check_ws_connection(ws) { function check_ws_connection(ws) {
if (checked_for_connection == false) if (checked_for_connection == false)
{ {
console.log("Checking connection to API")
if (ws.readyState != WebSocket.OPEN) { if (ws.readyState != WebSocket.OPEN) {
alert("Lost connection to API!") alert("Lost connection to API!")
document.getElementById("connectedlabel").innerHTML = "Not connected to drone"; document.getElementById("connectedlabel").innerHTML = "Not connected to drone";