mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Updated way of setting color
This commit is contained in:
@@ -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]));
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user