fix: invalid quote around partial script data (#2323)

This is a little emberassing 👀
This commit is contained in:
Marvin Hagemeister
2024-02-20 01:07:51 +01:00
committed by GitHub
parent 0fc83be54b
commit f1c17bc67e
+1 -1
View File
@@ -170,7 +170,7 @@ export function renderFreshTags(
);
const nonce = renderState.csp ? ` nonce="${renderState.getNonce()}` : "";
opts.bodyHtml +=
`<script id="__FRSH_PARTIAL_DATA_${renderState.renderUuid}" type="application/json"${nonce}">${escapedData}</script>`;
`<script id="__FRSH_PARTIAL_DATA_${renderState.renderUuid}" type="application/json"${nonce}>${escapedData}</script>`;
}
if (script !== "") {
opts.bodyHtml +=