mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-12-29 05:21:01 +00:00
more options for nochan socket
This commit is contained in:
2
static/dist/frontpage.min.js
vendored
2
static/dist/frontpage.min.js
vendored
File diff suppressed because one or more lines are too long
2
static/dist/main.min.js
vendored
2
static/dist/main.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -44,9 +44,9 @@ var connection_options = {
|
|||||||
'secure': true
|
'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";
|
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.on("get_list", function(){
|
||||||
socket.emit('list', chan.toLowerCase());
|
socket.emit('list', chan.toLowerCase());
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -178,7 +178,13 @@ $(document).ready(function (){
|
|||||||
window.list_html = list_html;
|
window.list_html = list_html;
|
||||||
$("#channels").empty();
|
$("#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.emit('frontpage_lists');
|
||||||
socket.on('playlists', function(msg){
|
socket.on('playlists', function(msg){
|
||||||
Nochan.populate_channels(msg);
|
Nochan.populate_channels(msg);
|
||||||
|
|||||||
Reference in New Issue
Block a user