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.
2 parents 08fc75b + dab0b6b commit a98665aCopy full SHA for a98665a
src/js/simplemde.js
@@ -1008,7 +1008,7 @@ SimpleMDE.prototype.autosave = function() {
1008
}
1009
1010
if(this.options.autosave.loaded !== true) {
1011
- 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) != "")
1012
this.codemirror.setValue(localStorage.getItem(this.options.autosave.unique_id));
1013
1014
this.options.autosave.loaded = true;
0 commit comments