Skip to content

Commit 22d3dd3

Browse files
committed
fix: dark mode logic
1 parent 798f349 commit 22d3dd3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/static/js/vimbin.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ document.addEventListener("DOMContentLoaded", function () {
66
)?.matches;
77

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

0 commit comments

Comments
 (0)