From ef6aff947418b28b42a3c192a56d630138f9f78d Mon Sep 17 00:00:00 2001 From: grnd-alt Date: Thu, 10 Oct 2024 11:26:07 +0200 Subject: [PATCH] fix: use system theme if no ncTheme available Signed-off-by: grnd-alt --- src/App.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App.tsx b/src/App.tsx index 4044cf0..7ffc271 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -53,7 +53,7 @@ export default function App({ const ncThemes = document.body.dataset?.themes return ( (window.matchMedia('(prefers-color-scheme: dark)').matches - && ncThemes?.indexOf('light') === -1) + && (ncThemes === undefined || ncThemes?.indexOf('light') === -1)) || ncThemes?.indexOf('dark') > -1 ) }