Trying to run cors-anywhere locally

This commit is contained in:
Kasper Rynning-Tønnesen
2015-07-14 00:24:10 +02:00
parent 5a067af725
commit ee4fd62c0c
47 changed files with 3754 additions and 4 deletions

View File

@@ -142,7 +142,7 @@ var Youtube = {
//$("body").css("background-color", colorThief.getColor(img));
};
img.crossOrigin = 'Anonymous';
img.src = 'https://cors-anywhere.herokuapp.com/http://img.youtube.com/vi/'+id+'/mqdefault.jpg';
img.src = '//localhost:8080/http://img.youtube.com/vi/'+id+'/mqdefault.jpg';
}
},