mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Trying new way of connecting to socketio
This commit is contained in:
@@ -41,7 +41,7 @@ $(document).ready(function(){
|
||||
$("head").append('<link type="text/css" rel="stylesheet" href="/public/css/embed.css" />');
|
||||
$("head").append('<link type="text/css" rel="stylesheet" href="/public/css/materialize.min.css" />');
|
||||
|
||||
add = "https://zoff.me";
|
||||
add = "https://socket.zoff.me";
|
||||
socket = io.connect(''+add+':8080', connection_options);
|
||||
|
||||
socket.on("get_list", function(){
|
||||
|
||||
@@ -385,7 +385,7 @@ function initfp(){
|
||||
|
||||
if(window.location.hostname != "fb.zoff.me") share_link_modifier_frontpage();
|
||||
|
||||
if(window.location.hostname == "zoff.me") add = "https://zoff.me";
|
||||
if(window.location.hostname == "zoff.me") add = "https://socket.zoff.me";
|
||||
else add = window.location.hostname;
|
||||
if(socket === undefined || Helper.mobilecheck()) socket = io.connect(''+add+':8080', connection_options);
|
||||
if($("#alreadyfp").length === 0 || Helper.mobilecheck() || !socket._callbacks.$playlists){
|
||||
|
||||
@@ -318,7 +318,7 @@ function init(){
|
||||
};
|
||||
|
||||
if(window.location.hostname != "fb.zoff.me") share_link_modifier_channel();
|
||||
if(window.location.hostname == "zoff.me") add = "https://zoff.me";
|
||||
if(window.location.hostname == "zoff.me") add = "https://socket.zoff.me";
|
||||
else add = window.location.hostname;
|
||||
|
||||
if(Player !== undefined) Player.stopInterval= false;
|
||||
@@ -705,7 +705,7 @@ function disable_debug(){
|
||||
}
|
||||
|
||||
function embed_code(autoplay, width, height, color){
|
||||
return '<embed src="https://zoff.me/_embed#' + chan.toLowerCase() + '&' + color + autoplay + '" width="' + width + 'px" height="' + height + 'px">';
|
||||
return '<embed src="https://socket.zoff.me/_embed#' + chan.toLowerCase() + '&' + color + autoplay + '" width="' + width + 'px" height="' + height + 'px">';
|
||||
}
|
||||
|
||||
function set_title_width(start){
|
||||
|
||||
@@ -17,7 +17,7 @@ $(document).ready(function (){
|
||||
$("#about").modal();
|
||||
$("#contact").modal();
|
||||
|
||||
if(window.location.hostname == "remote.zoff.me") add = "https://zoff.me";
|
||||
if(window.location.hostname == "remote.zoff.me") add = "https://socket.zoff.me";
|
||||
else add = "localhost";
|
||||
socket = io.connect(add + ':8080', connection_options);
|
||||
id = window.location.pathname.split("/")[1];
|
||||
|
||||
Reference in New Issue
Block a user