mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
more options for nochan socket
This commit is contained in:
@@ -44,9 +44,9 @@ var connection_options = {
|
||||
'secure': true
|
||||
};
|
||||
|
||||
if(window.location.hostname == "zoff.no") add = "dev.zoff.no";
|
||||
if(window.location.hostname == "zoff.no") add = "https://dev.zoff.no";
|
||||
else add = "localhost";
|
||||
var socket = io.connect('https://'+add+':8880', connection_options);
|
||||
var socket = io.connect(''+add+':8880', connection_options);
|
||||
socket.on("get_list", function(){
|
||||
socket.emit('list', chan.toLowerCase());
|
||||
});
|
||||
|
||||
@@ -178,7 +178,13 @@ $(document).ready(function (){
|
||||
window.list_html = list_html;
|
||||
$("#channels").empty();
|
||||
|
||||
var socket = io.connect('https://'+window.location.hostname+':8880');
|
||||
var connection_options = {
|
||||
'secure': true
|
||||
};
|
||||
|
||||
if(window.location.hostname == "zoff.no") add = "https://dev.zoff.no";
|
||||
else add = "localhost";
|
||||
var socket = io.connect(''+add+':8880', connection_options);
|
||||
socket.emit('frontpage_lists');
|
||||
socket.on('playlists', function(msg){
|
||||
Nochan.populate_channels(msg);
|
||||
|
||||
Reference in New Issue
Block a user