Skip to content

Commit

Permalink
fix: dark mode isDark check
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcosNicolau committed Jan 13, 2025
1 parent e62e366 commit 96b23dd
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions explorer/assets/vendor/dark_mode.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@ const isDark = () => {
.split("; ")
.find((row) => row.startsWith(`${themeCookieKey}=`))
?.split("=")[1];
return (
theme == "dark" ||
window.matchMedia("(prefers-color-scheme: dark)").matches
);
return theme == "dark";
};

const setThemeCookie = (theme) => {
Expand Down

0 comments on commit 96b23dd

Please sign in to comment.