mirror of
https://github.com/Ionaru/easy-markdown-editor
synced 2025-07-25 19:04:29 -06:00
fix condition for checking unique_id in autosave option when autosave is not defined
This commit is contained in:
parent
42c4a0bbef
commit
c7c940c614
@ -879,7 +879,7 @@ function SimpleMDE(options) {
|
|||||||
|
|
||||||
|
|
||||||
// Change unique_id to uniqueId for backwards compatibility
|
// Change unique_id to uniqueId for backwards compatibility
|
||||||
if(options.autosave.unique_id != undefined && options.autosave.unique_id != "")
|
if(options.autosave != undefined && options.autosave.unique_id != "")
|
||||||
options.autosave.uniqueId = options.autosave.unique_id;
|
options.autosave.uniqueId = options.autosave.unique_id;
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user