Skip to content

Commit 1b9879e

Browse files
committed
fix: passing vars to script
1 parent 9672d50 commit 1b9879e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/src/client/core/core.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ const Script = ({ n, k, t }: ScriptProps) => (
1919
<script
2020
suppressHydrationWarning
2121
// skipcq: JS-0440
22-
dangerouslySetInnerHTML={{ __html: `(${noFOUCScript.toString()})('${[k, t, n]}')` }}
22+
dangerouslySetInnerHTML={{
23+
__html: `(${noFOUCScript.toString()})(${[k, t, n].map(v => `'${v}'`)})`,
24+
}}
2325
nonce={n}
2426
/>
2527
);

0 commit comments

Comments
 (0)