From 96b23dde2c2cab7a06b3510a0a923be673be488f Mon Sep 17 00:00:00 2001 From: Marcos Nicolau Date: Mon, 13 Jan 2025 14:19:36 -0300 Subject: [PATCH] fix: dark mode isDark check --- explorer/assets/vendor/dark_mode.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/explorer/assets/vendor/dark_mode.js b/explorer/assets/vendor/dark_mode.js index 7c0ebc19b..a8b5e9425 100644 --- a/explorer/assets/vendor/dark_mode.js +++ b/explorer/assets/vendor/dark_mode.js @@ -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) => {