1
0
mirror of https://github.com/musix-org/musix-org.github.io synced 2024-11-09 22:10:18 +00:00
musixorg-website/public/main.js

12 lines
292 B
JavaScript
Raw Normal View History

2024-01-15 17:37:02 +00:00
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;
}