mirror of
https://github.com/sparksuite/simplemde-markdown-editor.git
synced 2025-07-30 21:34:27 -06:00
Merge pull request #186 from adam187/fix/autosave-condition
fix condition for checking unique_id in autosave option
This commit is contained in:
commit
8a1d8fd285
@ -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 != undefined && options.autosave.unique_id != "")
|
||||
options.autosave.uniqueId = options.autosave.unique_id;
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user