diff options
author | ache <ache@ache.one> | 2018-04-24 03:18:36 +0200 |
---|---|---|
committer | ache <ache@ache.one> | 2018-04-24 03:18:36 +0200 |
commit | 16ec5fbe197eba8b08a55f06fd54112b4de65d53 (patch) | |
tree | bc767deef49d68f66ef9478e6b78e25c2a6c36f7 | |
parent | xo advises (diff) |
Cancel parsing error
-rw-r--r-- | public/edit.html | 7 |
1 files changed, 5 insertions, 2 deletions
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); |