diff --git a/src/js/simplemde.js b/src/js/simplemde.js index 61392f8..0e14336 100644 --- a/src/js/simplemde.js +++ b/src/js/simplemde.js @@ -1233,8 +1233,8 @@ SimpleMDE.prototype.autosave = function() { SimpleMDE.prototype.clearAutosavedValue = function() { if(localStorage) { - if(this.options.autosave.uniqueId == undefined || this.options.autosave.uniqueId == "") { - console.log("SimpleMDE: You must set a uniqueId to use the autosave feature"); + if(this.options.autosave == undefined || this.options.autosave.uniqueId == undefined || this.options.autosave.uniqueId == "") { + console.log("SimpleMDE: You must set a uniqueId to clear the autosave value"); return; }