diff --git a/js/app.js b/js/app.js index 2d1a3bf..98ae6ac 100644 --- a/js/app.js +++ b/js/app.js @@ -30,7 +30,7 @@ function main(json) { // Set tab title document.title = `${app.name} - ${json.name}`; - const tintColor = `#${app.tintColor}`; + const tintColor = `#${app.tintColor?.replaceAll("#", "")}`; // Set tint color if (tintColor) document.querySelector(':root').style.setProperty("--app-tint-color", `${tintColor}`); diff --git a/js/main.js b/js/main.js index bc71208..f93c067 100644 --- a/js/main.js +++ b/js/main.js @@ -15,7 +15,8 @@ fetch(sourceURL, { .then(response => response.json()) .then(json => { // Set tint color - if (json.tintColor) setTintColor(json.tintColor); + const tintColor = json.tintColor?.replaceAll("#", ""); + if (tintColor) setTintColor(tintColor); setApps(json.apps); main(json);