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

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

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

0 comments on commit 23e58e9

Please sign in to comment.