Skip to content

Commit def4361

Browse files
fix: add whitespace when using nonce (#5981)
1 parent 192e44d commit def4361

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/router-core/src/ssr/ssr-server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ export function attachRouterServerSsrUtils({
129129
if (!script) {
130130
return ''
131131
}
132-
return `<script${router.options.ssr?.nonce ? `nonce='${router.options.ssr.nonce}' ` : ''} class='$tsr'>${script}</script>`
132+
return `<script${router.options.ssr?.nonce ? ` nonce='${router.options.ssr.nonce}'` : ''} class='$tsr'>${script}</script>`
133133
})
134134
},
135135
dehydrate: async () => {

0 commit comments

Comments
 (0)