We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5444c2b commit 3ac9767Copy full SHA for 3ac9767
apps/frontpage/components/puzzle-pieces.tsx
@@ -681,7 +681,7 @@ const shapes = [
681
const MAX_DISTANCE = 460;
682
683
const getPreferredScheme = () =>
684
- window?.matchMedia?.('(prefers-color-scheme:dark)')?.matches
+ window && window?.matchMedia?.('(prefers-color-scheme:dark)')?.matches
685
? 'dark'
686
: 'light';
687
0 commit comments