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();