Skip to content

Commit

Permalink
Fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
Shubidumdu committed Aug 1, 2024
1 parent 70840b5 commit e39e7f2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/app/components/Comment.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ const UTTERANCES_SCRIPT_OPTIONS = {
repo: 'Shubidumdu/shubidumdu.github.io',
'issue-term': 'pathname',
label: 'comment',
theme: window.matchMedia('(prefers-color-scheme: dark)').matches
? 'dark-blue'
: 'github-light',
theme:
typeof window !== 'undefined' &&
window.matchMedia('(prefers-color-scheme: dark)').matches
? 'dark-blue'
: 'github-light',
crossorigin: 'anonymous',
} as const;

Expand Down

0 comments on commit e39e7f2

Please sign in to comment.