mirror of
https://github.com/Ionaru/easy-markdown-editor
synced 2025-07-02 23:54:28 -06:00
commit
cd17552bf6
@ -871,7 +871,7 @@ SimpleMDE.prototype.autosave = function() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(this.options.autosave.loaded !== true) {
|
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.codemirror.setValue(localStorage.getItem(this.options.autosave.unique_id));
|
||||||
|
|
||||||
this.options.autosave.loaded = true;
|
this.options.autosave.loaded = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user