Updated way of setting color

This commit is contained in:
Kasper Rynning-Tønnesen
2017-05-02 18:31:08 +02:00
parent 380a6cd60e
commit 228b8b1928
3 changed files with 3 additions and 3 deletions

View File

@@ -388,7 +388,7 @@ var Player = {
var color = colorThief.getColor(img);
if(window.location.pathname != "/"){
document.getElementsByTagName("body")[0].style.backgroundColor = Helper.rgbToHsl(color,true);
document.getElementById("main-container").style.backgroundColor = Helper.rgbToHsl(color,true);
$("meta[name=theme-color]").attr("content", Helper.rgbToHex(color[0], color[1], color[2]));
}
};