Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
donavanbecker committed Jan 22, 2024
1 parent 6d12cf9 commit 203a2cb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/homebridge-ui/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,11 @@ <h5>Disclaimer</h5>
try {
const currentConfig = await homebridge.getPluginConfig()
const hostname = window.location.hostname
const port = currentConfig[0].port || '8585'
let port = '8585'
if (currentConfig[0].port) {
document.getElementById('inputPort').value = currentConfig[0].port
port = currentConfig[0].port
}
try {
await homebridge.request('Start Resideo Login Server')
} catch (err) {
Expand Down

0 comments on commit 203a2cb

Please sign in to comment.