From 0ef38171e94fd4eee9cba79dcc30ca2ce5d3fce7 Mon Sep 17 00:00:00 2001 From: Le Tan Date: Sat, 10 Nov 2018 19:39:57 +0800 Subject: [PATCH] web: minor fix --- src/resources/markdown_template.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/resources/markdown_template.js b/src/resources/markdown_template.js index 3e4cb501..833c5140 100644 --- a/src/resources/markdown_template.js +++ b/src/resources/markdown_template.js @@ -662,7 +662,7 @@ var renderFlowchart = function(classNames) { } if (matched) { - if (renderFlowchartOne(code, flowchartIdx)) { + if (renderFlowchartOne(code)) { // replaceChild() will decrease codes.length. --i; } @@ -736,9 +736,9 @@ var renderPlantUMLOneOnline = function(code) { ++asyncJobsCount; code.classList.add(plantUMLCodeClass + plantUMLIdx); - data = { index: plantUMLIdx, - setupView: !VPreviewMode - }; + let data = { index: plantUMLIdx, + setupView: !VPreviewMode + }; renderPlantUMLOnline(VPlantUMLServer, VPlantUMLFormat, code.textContent,