From 5a5f0c38e08b10577aba9d68afd1d5249acb08a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kasper=20Rynning-T=C3=B8nnesen?= Date: Tue, 9 Jun 2015 22:59:58 +0200 Subject: [PATCH] Nevermind, I'm not using it. It looks like shit --- static/js/youtube.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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';