-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Rewrite theme setting to properly support system theme
The existing code was a bit convoluted, and did not work correctly when toggling the theme back to the system theme - neither theme was properly applied on page load (cookie was present, so no theming was added) This also fixes the edge case where changing the system theme would override the site theme, due to not reading/using the cookie value correctly
- Loading branch information
1 parent
b935c28
commit 242771d
Showing
2 changed files
with
17 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters