diff --git a/static/js/youtube.js b/static/js/youtube.js index 73fe47f3..ba1ee8fb 100755 --- a/static/js/youtube.js +++ b/static/js/youtube.js @@ -252,7 +252,7 @@ function setBGimage(id){ var img = new Image(); img.onload = function () { var colorThief = new ColorThief(); - $("body").css("background-color", rgbToHsl(colorThief.getColor(img))); + $("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';