|
|
|
@ -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>`;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|