From 7bbb4a8e2db012c30850273506fe6df8e1f2710f Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Mon, 27 Nov 2017 19:45:10 -0500 Subject: [PATCH] Avoid logged deprecation warning in external note editor --- chrome/content/zotero/note.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/note.js b/chrome/content/zotero/note.js index 0612107f27..bc8618e062 100644 --- a/chrome/content/zotero/note.js +++ b/chrome/content/zotero/note.js @@ -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;