From 92c2f31606f1ecab1a7926dc3cb056b944966122 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20V=C3=A9ril?= Date: Sun, 24 May 2020 15:22:40 +0200 Subject: [PATCH] Delete unnescesary JSON.parse({{ jsonify }}) --- layouts/shortcodes/getDataFilesName.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/shortcodes/getDataFilesName.html b/layouts/shortcodes/getDataFilesName.html index 25d7a3ba..f16bfc51 100644 --- a/layouts/shortcodes/getDataFilesName.html +++ b/layouts/shortcodes/getDataFilesName.html @@ -10,7 +10,7 @@ function getAbsFilesName(){ {{- $list = $list | append (path.Join $subdir .Name) }} {{- end }} {{- end }} - var files=JSON.parse({{ jsonify $list }}) + var files={{ $list }} return files } {{- $subdir := "fluo" }} @@ -23,7 +23,7 @@ function getFluoFilesName(){ {{- $list = $list | append (path.Join $subdir .Name) }} {{- end }} {{- end }} - var files=JSON.parse({{ jsonify $list }}) + var files={{ $list }} return files } \ No newline at end of file