From 0ac16b49d1176d87f932d75597952caa7ac7e048 Mon Sep 17 00:00:00 2001 From: William Mills Date: Thu, 16 Nov 2023 14:20:17 -0600 Subject: [PATCH] Update widget.html --- widget.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/widget.html b/widget.html index 8259df9..b6a099b 100644 --- a/widget.html +++ b/widget.html @@ -160,7 +160,9 @@

...

// Only attempt to connect to the local host if URL parameters are present if (username && password) { - if(!ipAddress) ipAddress = 'localhost'; + if(ipAddress == undefined){ + ipAddress = 'localhost'; + } console.log(`Connecting to Device`, ipAddress); status.innerHTML = `URL Parameters Found - Connecting to Device`; connectToDevice();