From 545119633c847dca1265d005a6c49b90bb544c5e Mon Sep 17 00:00:00 2001 From: Sem van der Hoeven Date: Thu, 8 Jun 2023 12:18:56 +0200 Subject: [PATCH] try --- api/views/index.ejs | 1 + 1 file changed, 1 insertion(+) diff --git a/api/views/index.ejs b/api/views/index.ejs index b2c80069..7c546399 100644 --- a/api/views/index.ejs +++ b/api/views/index.ejs @@ -322,6 +322,7 @@ if (checked_for_connection == false && connected_to_api) { console.log("Checking connection to API") + console.log(ws.readyState) if (ws.readyState != WebSocket.OPEN) { alert("Lost connection to API!") document.getElementById("connectedlabel").innerHTML = "Not connected to drone";