Skip to content

Commit

Permalink
Update index.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimitri POSTOLOV authored Mar 13, 2024
1 parent f5f06c8 commit c24142e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions next-themes/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,7 @@ const ThemeScript = React.memo(
suppressHydrationWarning
nonce={typeof window === 'undefined' ? nonce : ''}
dangerouslySetInnerHTML={{
__html: `(${script.toString()})(${scriptProps
.map(p => JSON.stringify(p || null))
.join(',')})`
__html: `(${script.toString()})(${JSON.stringify(scriptProps)})`
}}
/>
)
Expand Down

0 comments on commit c24142e

Please sign in to comment.