1
0
mirror of https://github.com/musix-org/musix-org.github.io synced 2024-09-16 16:21:09 +00:00
musixorg-website/public/main.js
2024-01-15 19:37:02 +02:00

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;
}