diff options
-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); |