LostRhapsody / slothtime

Minimalist time tracking website
https://slothtime.dev
GNU General Public License v3.0
0 stars 0 forks source link

BUG - Meta theme color doesn't change on startup #31

Closed LostRhapsody closed 1 year ago

LostRhapsody commented 1 year ago

The meta tag that controls the theme color doesn't change with you refresh the page or open the website when a unique theme is selected in your config. It always displays the default "Serika Dark" yellow. It does work when changing themes. Will just have to make sure when calling change theme on startup, we're still updating the meta tag.

The issue is that we were getting the hex color from the theme list, which isn't generated until the user clicks on it. Instead, we need to take it from the config file.