Fix random character insertion

This commit is contained in:
yflory
2018-10-25 17:26:46 +02:00
parent aa6c6c7f3a
commit e4daa5adbe

View File

@@ -180,7 +180,7 @@ define([
if (JSONSortify(newContent) === JSONSortify(oldContent)) { return; }
try {
evContentUpdate.fire(newContent, waitFor);
setTimeout(function () { oldContent = newContent; });
oldContent = newContent;
} catch (e) {
console.log(e.stack);
UI.errorLoadingScreen(e.message);