mirror of
https://github.com/musix-org/musix-org.github.io
synced 2024-11-09 22:10:18 +00:00
12 lines
292 B
JavaScript
12 lines
292 B
JavaScript
|
getColors().then((colors) => {
|
||
|
if (document.URL.includes("/guide")) {
|
||
|
document.documentElement.style.setProperty("--main-accent", colors.green);
|
||
|
}
|
||
|
});
|
||
|
|
||
|
async function getColors() {
|
||
|
const res = await fetch("./public/colors.json");
|
||
|
const final = await res.json();
|
||
|
return final;
|
||
|
}
|