restore indentation

pull/17338/head
Rich Harris 1 week ago
parent eb60df8fc0
commit dc691ca69d

@ -679,16 +679,16 @@ export class Renderer {
} }
const body = ` const body = `
{ {
${prelude} ${prelude}
for (const [k, v] of [ for (const [k, v] of [
${entries.join(',\n')} ${entries.join(',\n')}
]) { ]) {
h.set(k, v); h.set(k, v);
} }
} }
`; `;
let csp_attr = ''; let csp_attr = '';
if (this.global.csp.nonce) { if (this.global.csp.nonce) {
@ -701,7 +701,7 @@ export class Renderer {
this.global.csp.script_hashes.push(`sha256-${hash}`); this.global.csp.script_hashes.push(`sha256-${hash}`);
} }
return `<script${csp_attr}>${body}</script>`; return `\n\t\t<script${csp_attr}>${body}</script>`;
} }
} }

Loading…
Cancel
Save