[ci] format

This commit is contained in:
bluwy 2023-05-15 06:37:46 +00:00 committed by fredkbot
parent 914c439bcc
commit f994ebdb53

View file

@ -43,7 +43,10 @@ export function defineScriptVars(vars: Record<any, any>) {
for (const [key, value] of Object.entries(vars)) {
// Use const instead of let as let global unsupported with Safari
// https://stackoverflow.com/questions/29194024/cant-use-let-keyword-in-safari-javascript
output += `const ${toIdent(key)} = ${JSON.stringify(value).replace(/<\/script>/g, "\\x3C/script>")};\n`;
output += `const ${toIdent(key)} = ${JSON.stringify(value).replace(
/<\/script>/g,
'\\x3C/script>'
)};\n`;
}
return markHTMLString(output);
}