diff --git a/chrome/content/zotero/overlay.js b/chrome/content/zotero/overlay.js index 6c7f31826..a8ad906e7 100644 --- a/chrome/content/zotero/overlay.js +++ b/chrome/content/zotero/overlay.js @@ -1321,12 +1321,12 @@ var ZoteroPane = new function() window.open(uri, "zotero-loaded-page", "menubar=yes,location=yes,toolbar=yes,personalbar=yes,resizable=yes,scrollbars=yes,status=yes"); - var wm = Components.classes["@mozilla.org/appshell/window-mediator;1"] - .getService(Components.interfaces.nsIWindowMediator); - var newWindow = wm.getMostRecentWindow("navigator:browser"); - var browser = newWindow.getBrowser(); - if (data && data.attachmentID) { + var wm = Components.classes["@mozilla.org/appshell/window-mediator;1"] + .getService(Components.interfaces.nsIWindowMediator); + var newWindow = wm.getMostRecentWindow("navigator:browser"); + //var browser = newWindow.getBrowser(); + newWindow.Zotero_Browser.annotatePage(data.attachmentID); // In case the page has already loaded, update newWindow.Zotero_Browser.updateStatus();