diff --git a/chrome/content/zotero/note.js b/chrome/content/zotero/note.js index 3901d57b15..0daeae4aa6 100644 --- a/chrome/content/zotero/note.js +++ b/chrome/content/zotero/note.js @@ -120,6 +120,11 @@ function onUnload() { var NotifyCallback = { notify: function(action, type, ids){ if (noteEditor.item && ids.includes(noteEditor.item.id)) { + if (action == 'delete') { + window.close(); + return; + } + var noteTitle = noteEditor.item.getNoteTitle(); document.title = noteTitle;