Changing ports

This commit is contained in:
Kasper Rynning-Tønnesen
2017-01-05 14:45:56 +01:00
parent 4a4184ae3a
commit bb8dbafa9c
8 changed files with 12 additions and 12 deletions

View File

@@ -41,7 +41,7 @@ $(document).ready(function(){
$("head").append('<link type="text/css" rel="stylesheet" href="/public/css/materialize.min.css" />');
add = "https://zoff.no";
socket = io.connect(''+add+':8880', connection_options);
socket = io.connect(''+add+':8080', connection_options);
socket.on("get_list", function(){
setTimeout(function(){socket.emit('list', chan.toLowerCase());},1000);

View File

@@ -176,7 +176,7 @@ function init(){
if(socket === undefined || Helper.mobilecheck()){
no_socket = false;
socket = io.connect(''+add+':8880', connection_options);
socket = io.connect(''+add+':8080', connection_options);
}
if($("#alreadychannel").length === 0 || Helper.mobilecheck()){
@@ -248,7 +248,7 @@ function init(){
}
initializeCastApi = function() {
$(".castButton").css("display", "block");
//$(".castButton").css("display", "block");
cast.framework.CastContext.getInstance().setOptions({
receiverApplicationId: "E6856E24",
autoJoinPolicy: chrome.cast.AutoJoinPolicy.ORIGIN_SCOPED});

View File

@@ -340,7 +340,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(socket === undefined || Helper.mobilecheck()) socket = io.connect(''+add+':8080', connection_options);
if($("#alreadyfp").length === 0 || Helper.mobilecheck() || !socket._callbacks.$playlists){
setup_playlist_listener();
}

View File

@@ -332,7 +332,7 @@ var Player = {
};
img.crossOrigin = 'Anonymous';
img.src = 'https://zoff.no:8080/https://img.youtube.com/vi/'+id+'/mqdefault.jpg';
img.src = 'https://zoff.no:8081/https://img.youtube.com/vi/'+id+'/mqdefault.jpg';
}
},

View File

@@ -15,7 +15,7 @@ $(document).ready(function (){
};
if(window.location.hostname == "remote.zoff.no") add = "https://zoff.no";
else add = "localhost";
socket = io.connect(add + ':8880', connection_options);
socket = io.connect(add + ':8080', connection_options);
id = window.location.pathname.split("/")[1];
if(id)
{