mirror of
https://github.com/dillonzq/LoveIt.git
synced 2024-11-14 02:46:16 +01:00
fix(scripts): fix jsonify bug
This commit is contained in:
parent
dd6c0f7907
commit
39f4869260
1 changed files with 3 additions and 3 deletions
|
@ -49,7 +49,7 @@
|
|||
{{- $typeitArr = $typeitArr | append (slice $val) -}}
|
||||
{{- end -}}
|
||||
<script>
|
||||
{{- printf "window.typeitArr=%s;" (jsonify $typeitArr) | safeJS -}}
|
||||
{{- printf "window.typeitArr=%s;" ($typeitArr | jsonify) | safeJS -}}
|
||||
</script>
|
||||
{{- end -}}
|
||||
|
||||
|
@ -138,7 +138,7 @@
|
|||
{{- $mermaid = delimit (slice $mermaid $mermaidInit) "" -}}
|
||||
{{- $mermaid | safeHTML -}}
|
||||
<script>
|
||||
{{- printf "window.mermaidMap=%s;" (jsonify .Scratch.Get "mermaidMap") | safeJS -}}
|
||||
{{- printf "window.mermaidMap=%s;" (.Scratch.Get "mermaidMap" | jsonify) | safeJS -}}
|
||||
</script>
|
||||
{{- end -}}
|
||||
|
||||
|
@ -184,7 +184,7 @@
|
|||
{{- end -}}
|
||||
{{- $countdown | safeHTML -}}
|
||||
<script>
|
||||
{{- printf "window.countdownMap=%s;" (jsonify .Scratch.Get "countdownMap") | safeJS -}}
|
||||
{{- printf "window.countdownMap=%s;" (.Scratch.Get "countdownMap" | jsonify) | safeJS -}}
|
||||
</script>
|
||||
{{- end -}}
|
||||
|
||||
|
|
Loading…
Reference in a new issue