mirror of
https://github.com/sparksuite/simplemde-markdown-editor.git
synced 2024-06-26 01:10:15 +02: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
|
||||
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;
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue