Skip to content

Commit 3ac9767

Browse files
committed
Update puzzle-pieces.tsx
1 parent 5444c2b commit 3ac9767

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/frontpage/components/puzzle-pieces.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,7 @@ const shapes = [
681681
const MAX_DISTANCE = 460;
682682

683683
const getPreferredScheme = () =>
684-
window?.matchMedia?.('(prefers-color-scheme:dark)')?.matches
684+
window && window?.matchMedia?.('(prefers-color-scheme:dark)')?.matches
685685
? 'dark'
686686
: 'light';
687687

0 commit comments

Comments
 (0)