Added support so internet explorer

This commit is contained in:
Kasper Rynning-Tønnesen
2015-04-16 11:09:25 +02:00
parent 45a492977d
commit 2b7cb42e8c
2 changed files with 16 additions and 3 deletions

View File

@@ -104,8 +104,8 @@ io.on('connection', function(socket){
socket.on('end', function(arg)
{
db.collection(coll).find({now_playing:true}, function(err, docs){
if(docs.length > 0 && docs[0]["id"]== arg){
change_song(coll);
if(docs.length > 0 && docs[0]["id"] == arg){
change_song(coll, arg);
}
})
});