We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4240da8 commit 2335959Copy full SHA for 2335959
src/js/simplemde.js
@@ -871,7 +871,7 @@ SimpleMDE.prototype.autosave = function() {
871
}
872
873
if(this.options.autosave.loaded !== true) {
874
- if(localStorage.getItem(this.options.autosave.unique_id) != null)
+ if(typeof localStorage.getItem(this.options.autosave.unique_id) == "string" && localStorage.getItem(this.options.autosave.unique_id) != "")
875
this.codemirror.setValue(localStorage.getItem(this.options.autosave.unique_id));
876
877
this.options.autosave.loaded = true;
0 commit comments