mirror of
https://gitlab.crans.org/nounous/ghostream.git
synced 2025-06-27 23:52:16 +02:00
Separate statistics per stream
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
// Refresh viewer count by pulling metric from server
|
||||
function refreshViewersCounter(period) {
|
||||
fetch("/_stats/")
|
||||
// Distinguish oneDomainPerStream mode
|
||||
fetch("/_stats/" + (location.pathname === "/" ? location.host : location.pathname.substring(1)))
|
||||
.then(response => response.json())
|
||||
.then((data) => document.getElementById("connected-people").innerText = data.ConnectedViewers)
|
||||
.catch(console.log)
|
||||
|
Reference in New Issue
Block a user