www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 7e290b262c661061f9d28e43ea353b0342a3c24b
parent 0d4fd26be9a3f6e9ffdfef6a34d026695da6a409
Author: Dan Stillman <dstillman@zotero.org>
Date:   Thu,  1 Mar 2018 03:04:25 -0500

Fix bug in 97661539dc

Diffstat:
Mchrome/content/zotero/xpcom/recognizePDF.js | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/chrome/content/zotero/xpcom/recognizePDF.js b/chrome/content/zotero/xpcom/recognizePDF.js @@ -89,9 +89,9 @@ Zotero.RecognizePDF = new function () { return; } this.recognizeItems(pdfs); - let pane = Zotero.getActiveZoteroPane(); - if (pane) { - Zotero_RecognizePDF_Dialog.open(); + var win = Services.wm.getMostRecentWindow("navigator:browser"); + if (win) { + win.Zotero_RecognizePDF_Dialog.open(); } };