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

12 lines
292 B
JavaScript
Raw Permalink 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;
}