Fix tint color setting

This commit is contained in:
foxster-mp4
2023-05-01 09:01:06 -07:00
parent 245c743e97
commit 01eeaeaa6a
2 changed files with 3 additions and 2 deletions

View File

@@ -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}`);