Added fix for frontpage listener not being initiated

This commit is contained in:
Kasper Rynning-Tønnesen
2016-11-21 12:46:05 +01:00
parent 8bb0f3f886
commit b1a41ca74a
2 changed files with 4 additions and 4 deletions

File diff suppressed because one or more lines are too long

View File

@@ -341,7 +341,7 @@ function initfp(){
if(window.location.hostname == "zoff.no") add = "https://zoff.no";
else add = window.location.hostname;
if(socket === undefined || Helper.mobilecheck()) socket = io.connect(''+add+':8880', connection_options);
if($("#alreadyfp").length === 0 || Helper.mobilecheck()){
if($("#alreadyfp").length === 0 || Helper.mobilecheck() || !socket._callbacks.$playlists){
setup_playlist_listener();
}