[ci] format
This commit is contained in:
parent
914c439bcc
commit
f994ebdb53
1 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue