diff --git a/chrome/content/zotero/elements/textLink.js b/chrome/content/zotero/elements/textLink.js index 86d4831a25..90df930011 100644 --- a/chrome/content/zotero/elements/textLink.js +++ b/chrome/content/zotero/elements/textLink.js @@ -82,7 +82,7 @@ // otherwise, fall back to opening the anchor directly var win = window; - if (window instanceof Components.interfaces.nsIDOMChromeWindow) { + if (win.isChromeWindow) { while (win.opener && !win.opener.closed) win = win.opener; } diff --git a/chrome/content/zotero/zoteroPane.js b/chrome/content/zotero/zoteroPane.js index 46b1b58bb6..811f31cde4 100644 --- a/chrome/content/zotero/zoteroPane.js +++ b/chrome/content/zotero/zoteroPane.js @@ -3020,7 +3020,7 @@ var ZoteroPane = new function() } // Restore window if it's in the dock - if (window.windowState == Components.interfaces.nsIDOMChromeWindow.STATE_MINIMIZED) { + if (window.windowState == window.STATE_MINIMIZED) { window.restore(); }