mirror of
https://github.com/sparksuite/simplemde-markdown-editor.git
synced 2024-05-18 13:46:38 +02:00
Merge branch 'master' into development
This commit is contained in:
commit
a98665a0a7
|
@ -1008,7 +1008,7 @@ SimpleMDE.prototype.autosave = function() {
|
|||
}
|
||||
|
||||
if(this.options.autosave.loaded !== true) {
|
||||
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) != "")
|
||||
this.codemirror.setValue(localStorage.getItem(this.options.autosave.unique_id));
|
||||
|
||||
this.options.autosave.loaded = true;
|
||||
|
|
Loading…
Reference in a new issue