From 22d3dd3ab666e09d3578db3b235c045fcdba50bc Mon Sep 17 00:00:00 2001 From: gi8 Date: Wed, 20 Dec 2023 15:31:55 +0100 Subject: [PATCH] fix: dark mode logic --- web/static/js/vimbin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/static/js/vimbin.js b/web/static/js/vimbin.js index 70de013..73be33e 100644 --- a/web/static/js/vimbin.js +++ b/web/static/js/vimbin.js @@ -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"; }