Skip to content

Commit a98665a

Browse files
committed
Merge branch 'master' into development
2 parents 08fc75b + dab0b6b commit a98665a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/js/simplemde.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1008,7 +1008,7 @@ SimpleMDE.prototype.autosave = function() {
10081008
}
10091009

10101010
if(this.options.autosave.loaded !== true) {
1011-
if(localStorage.getItem(this.options.autosave.unique_id) != null)
1011+
if(typeof localStorage.getItem(this.options.autosave.unique_id) == "string" && localStorage.getItem(this.options.autosave.unique_id) != "")
10121012
this.codemirror.setValue(localStorage.getItem(this.options.autosave.unique_id));
10131013

10141014
this.options.autosave.loaded = true;

0 commit comments

Comments
 (0)