Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
donavanbecker committed Feb 6, 2024
1 parent 63f6167 commit d497103
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/homebridge-ui/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,6 @@ <h5>Disclaimer</h5>
showIntro()
})
backToIntro.style.display = 'none'
document.getElementById('copyMe').value = 'http://' + hostname + ':8585/auth'
const linkButton = document.getElementById('linkButton')
linkButton.addEventListener('click', () => {
linkAccount()
Expand All @@ -396,6 +395,7 @@ <h5>Disclaimer</h5>
document.getElementById('pageSupport').style.display = 'none'
document.getElementById('pageDevices').style.display = 'none'
document.getElementById('pageAccount').style.display = 'block'
document.getElementById('copyMe').value = 'http://' + hostname + ':8585/auth'
document.getElementById('linkButton').style.display = 'inline-block'
let isRelink = false
if (currentConfig[0] && currentConfig[0].credentials) {
Expand All @@ -415,6 +415,8 @@ <h5>Disclaimer</h5>
: 'Link Account &rarr;'
if (!isRelink) {
document.getElementById('backToIntro').style.display = 'inline-block'
} else {
document.getElementById('backToIntro').style.display = 'none'
}
homebridge.hideSpinner()
}
Expand Down

0 comments on commit d497103

Please sign in to comment.