diff --git a/ace/index.html b/ace/index.html
index 13690eb..2ca470a 100644
--- a/ace/index.html
+++ b/ace/index.html
@@ -40,8 +40,10 @@
autoScrollEditorIntoView: true
})
- editor.setValue(localStorage.getItem("acetest"));
- editor.clearSelection();
+ if (localStorage.getItem("acetest") === null) {
+ editor.setValue(localStorage.getItem("acetest"));
+ editor.clearSelection();
+ }
editor.getSession().on('change', function () {
localStorage.setItem("acetest", editor.getSession().getValue());