1
0
mirror of https://gitlab.crans.org/nounous/ghostream.git synced 2025-06-27 18:02:06 +02:00

Make viewers counter period configurable

This commit is contained in:
Alexandre Iooss
2020-09-29 18:44:32 +02:00
parent 12009b5875
commit 06542590e1
5 changed files with 18 additions and 9 deletions

View File

@ -50,5 +50,10 @@
{{end}}
]
startPeerConnection()
// Wait a bit before pulling viewers counter for the first time
setTimeout(() => {
refreshViewersCounter({{.Cfg.ViewersCounterRefreshPeriod}})
}, 1000)
</script>
{{end}}