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 c24142e commit c169b88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion next-themes/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ const ThemeScript = React.memo(
suppressHydrationWarning
nonce={typeof window === 'undefined' ? nonce : ''}
dangerouslySetInnerHTML={{
__html: `(${script.toString()})(${JSON.stringify(scriptProps)})`
__html: `(${script.toString()})(${JSON.stringify(scriptProps).slice(1, -1)})`
}}
/>
)
Expand Down

0 comments on commit c169b88

Please sign in to comment.