mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Made socketeventheaders better, none of that chan,np, just np now
This commit is contained in:
@@ -25,7 +25,7 @@ var playing = false;
|
||||
//play new song
|
||||
function setup_youtube_listener(channel)
|
||||
{
|
||||
socket.on(channel.toLowerCase()+",np", function(obj)
|
||||
socket.on("np", function(obj)
|
||||
{
|
||||
console.log(obj);
|
||||
if(obj[0].length == 0){
|
||||
@@ -67,7 +67,7 @@ function setup_youtube_listener(channel)
|
||||
}
|
||||
});
|
||||
|
||||
socket.on(channel.toLowerCase()+",viewers", function(view)
|
||||
socket.on("viewers", function(view)
|
||||
{
|
||||
viewers = view;
|
||||
if(song_title !== undefined)
|
||||
|
||||
Reference in New Issue
Block a user