feat: rename class styles, improve js idiomacy
This commit is contained in:
parent
707afe91fa
commit
cae425da1a
9 changed files with 12 additions and 14 deletions
|
|
@ -1,7 +1,3 @@
|
|||
const urlToTopic = () => {
|
||||
return new URL(window.location.href).pathname.split("/")[2];
|
||||
};
|
||||
|
||||
document.documentElement.style.setProperty(
|
||||
"--topic-color",
|
||||
getTopicColor(urlToTopic()),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue