mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
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:
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user