Avoid logged deprecation warning in external note editor
This commit is contained in:
parent
202192bc72
commit
7bbb4a8e2d
1 changed files with 1 additions and 1 deletions
|
@ -99,7 +99,7 @@ var NotifyCallback = {
|
|||
if (noteEditor.item && ids.indexOf(noteEditor.item.id) != -1) {
|
||||
// If the document title hasn't yet been set, reset undo so
|
||||
// undoing to empty isn't possible
|
||||
var noteTitle = noteEditor.note.getNoteTitle();
|
||||
var noteTitle = noteEditor.item.getNoteTitle();
|
||||
if (!document.title && noteTitle != '') {
|
||||
noteEditor.clearUndo();
|
||||
document.title = noteTitle;
|
||||
|
|
Loading…
Reference in a new issue