Fixed so users that has blocked cookies still are able to play

This commit is contained in:
Kasper Rynning-Tønnesen
2018-09-19 22:58:51 +02:00
parent 5dc5590c67
commit 8cd9f8fa5d
7 changed files with 70 additions and 25 deletions

View File

@@ -4,6 +4,12 @@ var gotten_np = false;
var song_title = "";
var paused = false;
var client = false;
var _VERSION;
try {
_VERSION = localStorage.getItem("VERSION");
} catch(e) {
_VERSION = 6;
}
var startTime = 0;
var full_playlist;
var hostMode = false;
@@ -383,7 +389,7 @@ function change_offline(enabled, already_offline){
socket.emit("pos", {channel: chan.toLowerCase()});
var add = "";
//if(private_channel) add = Crypt.getCookie("_uI") + "_";
socket.emit("list", {version: parseInt(localStorage.getItem("VERSION")), channel: add + chan.toLowerCase()});
socket.emit("list", {version: parseInt(_VERSION), channel: add + chan.toLowerCase()});
Helper.removeClass("#controls", "ewresize");
}
}