Voting now functioning better in private mode

This commit is contained in:
Kasper Rynning-Tønnesen
2017-01-25 18:14:44 +01:00
parent 2697315ed9
commit 02b946448f
4 changed files with 20 additions and 11 deletions

View File

@@ -268,7 +268,6 @@ var List = {
},
added_song: function(added){
console.log(added);
var now_playing;
if(full_playlist.length !== 0){
@@ -396,7 +395,7 @@ var List = {
if(!offline){
socket.emit('vote', {channel: chan, id: id, type: vote, adminpass: adminpass});
} else {
List.channel_function({type:"vote", value: id, time: (new Date()).getTime()})
List.voted_song(id, (new Date()).getTime()/1000);
}
return true;
},