From 16ec5fbe197eba8b08a55f06fd54112b4de65d53 Mon Sep 17 00:00:00 2001 From: ache Date: Tue, 24 Apr 2018 03:18:36 +0200 Subject: Cancel parsing error --- public/edit.html | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'public') diff --git a/public/edit.html b/public/edit.html index b1aca3a..204b537 100644 --- a/public/edit.html +++ b/public/edit.html @@ -59,8 +59,11 @@ let modification = false; let interval = setInterval( () => { if( modification ) { hmd(edit.innerText, (err, file) => { - preview.innerHTML = String(file); - modification = false; + let finalString = String(file); + if( finalString ) { + preview.innerHTML = String(file); + modification = false; + } }); } }, 500); -- cgit v1.2.3