2
0
mirror of https://github.com/Ionaru/easy-markdown-editor synced 2025-07-22 17:34:37 -06:00

fix condition for checking unique_id in autosave option when autosave is not defined

This commit is contained in:
Adam Misiorny 2015-11-29 21:13:40 +01:00
parent 42c4a0bbef
commit c7c940c614

View File

@ -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;