Fixed issue with viewers not updating

This commit is contained in:
Kasper Rynning-Tønnesen
2017-06-04 14:03:05 +02:00
parent b6f7a834d8
commit 4757bf263c
3 changed files with 5 additions and 2 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -646,6 +646,9 @@ function setup_suggested_listener(){
function setup_viewers_listener(){
socket.on("viewers", function(view){
viewers = view;
var outPutWord = "<i class='material-icons'>visibility</i>"//v > 1 ? "viewers" : "viewer";
$("#viewers").html(outPutWord + " " + view);
if(song_title !== undefined)
Player.getTitle(song_title, viewers);