Skip to content

Commit

Permalink
review
Browse files Browse the repository at this point in the history
  • Loading branch information
jpsantosbh committed Mar 13, 2024
1 parent 23cfe4a commit 3391a31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public/full.js
Original file line number Diff line number Diff line change
Expand Up @@ -537,12 +537,12 @@ window.__avaliable = false
window.toggleAvaliable = async () => {
window.__avaliable = ! window.__avaliable
const isOn = window.__avaliable
btnAvaliable.innerText = isOn ? 'away' : 'avaliable'
btnAvaliable.innerText = isOn ? 'get offline' : 'get online'
btnAvaliable.classList = isOn ? 'btn btn-success' : 'btn btn-warning'
if(!window.__client) {
window.__client = await getClient()
}
client

if(isOn) {
window.__client.online({all: __incomingCallNotification})
} else {
Expand Down

0 comments on commit 3391a31

Please sign in to comment.