Skip to content

Commit

Permalink
fix(browserAction): hide WebUI link when API is down
Browse files Browse the repository at this point in the history
  • Loading branch information
lidel committed Mar 20, 2017
1 parent 1b10d67 commit 1eed541
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions add-on/src/popup/browser-action.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ function updatePopup () {
show('quick-upload')
} else {
hide('quick-upload')
if (peerCount < 0) {
hide('open-webui')
}
}
})
.catch(error => {
Expand Down

0 comments on commit 1eed541

Please sign in to comment.