mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Made major improvements to embedded player, added option for making server force clients to fully refresh, and added some more failsafes for the server
This commit is contained in:
@@ -427,7 +427,12 @@ function initfp(){
|
||||
|
||||
if(window.location.hostname == "zoff.me") add = "https://zoff.me";
|
||||
else add = window.location.hostname;
|
||||
if(socket === undefined || Helper.mobilecheck() || user_auth_avoid) socket = io.connect(''+add+':8080', connection_options);
|
||||
if(socket === undefined || Helper.mobilecheck() || user_auth_avoid) {
|
||||
socket = io.connect(''+add+':8080', connection_options);
|
||||
socket.on('update_required', function() {
|
||||
window.location.reload(true);
|
||||
});
|
||||
}
|
||||
if($("#alreadyfp").length === 0 || Helper.mobilecheck() || !socket._callbacks.$playlists || user_auth_avoid){
|
||||
setup_playlist_listener();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user