Skip to content

Commit

Permalink
fix: dark mode logic
Browse files Browse the repository at this point in the history
  • Loading branch information
gi8lino committed Dec 20, 2023
1 parent 798f349 commit 22d3dd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/static/js/vimbin.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ document.addEventListener("DOMContentLoaded", function () {
)?.matches;

// If theme is set to "dark" or "auto" and the user prefers dark mode, return "catppuccino"
if ((theme === "auto" || theme === "dark") && prefersDarkMode) {
if ((theme === "auto" && prefersDarkMode) || theme === "dark") {
return "catppuccin";
}

Expand Down

0 comments on commit 22d3dd3

Please sign in to comment.