Skip to content

Commit

Permalink
Update widget.html
Browse files Browse the repository at this point in the history
  • Loading branch information
wmpmills authored Nov 16, 2023
1 parent aa8f4b4 commit 0ac16b4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion widget.html
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,9 @@ <h1 class="title" id="closeProximiity">...</h1>

// 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();
Expand Down

0 comments on commit 0ac16b4

Please sign in to comment.