feat: rename class styles, improve js idiomacy

This commit is contained in:
Barrett Ruth 2024-06-26 14:09:06 -05:00
parent 707afe91fa
commit cae425da1a
9 changed files with 12 additions and 14 deletions

View file

@ -1,7 +1,3 @@
const urlToTopic = () => {
return new URL(window.location.href).pathname.split("/")[2];
};
document.documentElement.style.setProperty(
"--topic-color",
getTopicColor(urlToTopic()),