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 23, 2023
1 parent b20ac67 commit 44992dd
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions widget.html
Original file line number Diff line number Diff line change
Expand Up @@ -272,9 +272,11 @@ <h1 class="title" id="closeProximiity">...</h1>
peoplePresence.innerHTML =
await await xapi.Status.RoomAnalytics.PeoplePresence.get();
peopleCountCurrent.innerHTML =
await await xapi.Status.RoomAnalytics.PeopleCount.Current.get();
await await xapi.Status.RoomAnalytics.PeopleCount.Current.get()
.then(result => (result == -1 ) ? '0' : result))
peopleCountCapacity.innerHTML =
await xapi.Status.RoomAnalytics.PeopleCount.Capacity.get();
await xapi.Status.RoomAnalytics.PeopleCount.Capacity.get()
.then(result => (result == -1 ) ? 'Not Set' : result)

try {
closeProximiity.innerHTML =
Expand All @@ -294,11 +296,11 @@ <h1 class="title" id="closeProximiity">...</h1>
});

xapi.Status.RoomAnalytics.PeopleCount.Current.on((value) => {
peopleCountCurrent.innerHTML = value;
peopleCountCurrent.innerHTML = (result == -1 ) ? '0' : result);
});

xapi.Status.RoomAnalytics.PeopleCount.Capacity.on((value) => {
peopleCountCapacity.innerHTML = value;
peopleCountCapacity.innerHTML = (result == -1 ) ? 'Not Set' : result);
});
});
}
Expand Down

0 comments on commit 44992dd

Please sign in to comment.