hopefully this fixes the https resource issue

This commit is contained in:
Kasper Rynning-Tønnesen
2015-06-11 15:01:38 +02:00
parent abdb3423fc
commit a9f54ce2c3
3 changed files with 3 additions and 3 deletions

View File

@@ -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');

View File

@@ -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);

View File

@@ -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) {