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

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