diff --git a/static/js/main.js b/static/js/main.js index e653573..5024198 100644 --- a/static/js/main.js +++ b/static/js/main.js @@ -186,7 +186,7 @@ function updateFont() { currentFontSize = localStorage.getItem("SETTING-fontsize") noteBox.style.fontSize = currentFontSize + "px" textSizeBox.innerText = currentFontSize + "px" - if markdowntoggle { + if (markdowntoggle) { var targethtml = "" + marked.parse(noteBox.value) + ""; markdown.srcdoc = targethtml; }