mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
hopefully this fixes the https resource issue
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
var fs = require('fs');
|
||||
var http = require('http');
|
||||
//var http = require('http');
|
||||
var https = require('https');
|
||||
var privateKey = fs.readFileSync('/etc/apache2/ssl/private.key', 'utf8');
|
||||
var certificate = fs.readFileSync('/etc/apache2/ssl/ssl.crt', 'utf8');
|
||||
|
||||
@@ -27,7 +27,7 @@ function populate_channels(lists)
|
||||
var nowplaying = lists[x][2];
|
||||
var chan = lists[x][3];
|
||||
var viewers = lists[x][0];
|
||||
var img = "background-image:url('http://img.youtube.com/vi/"+id+"/hqdefault.jpg');";
|
||||
var img = "background-image:url('https://img.youtube.com/vi/"+id+"/hqdefault.jpg');";
|
||||
var song_count = lists[x][4];
|
||||
|
||||
//$("#channels").append(list_html);
|
||||
|
||||
@@ -276,7 +276,7 @@ function setBGimage(id){
|
||||
//$("body").css("background-color", colorThief.getColor(img));
|
||||
};
|
||||
img.crossOrigin = 'Anonymous';
|
||||
img.src = 'http://cors-anywhere.herokuapp.com/http://img.youtube.com/vi/'+id+'/mqdefault.jpg';
|
||||
img.src = 'https://cors-anywhere.herokuapp.com/http://img.youtube.com/vi/'+id+'/mqdefault.jpg';
|
||||
}
|
||||
|
||||
function notifyUser(id, title) {
|
||||
|
||||
Reference in New Issue
Block a user