Merge pull request #387 from zoff-music/feature/no-cookies-allow

Fixed so users that has blocked cookies still are able to play
This commit is contained in:
Kasper Rynning-Tønnesen
2018-09-20 13:58:14 +02:00
committed by GitHub
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;
@@ -385,7 +391,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");
}
}