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 ) }