Avoid logged deprecation warning in external note editor

This commit is contained in:
Dan Stillman 2017-11-27 19:45:10 -05:00
parent 202192bc72
commit 7bbb4a8e2d

View file

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