From e01cb38c5d11b4984f0d41926ff9694882830f22 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Fri, 8 Dec 2017 00:10:26 -0500 Subject: [PATCH] Avoid deprecation warning in recognizePDF --- chrome/content/zotero/recognizePDF.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/recognizePDF.js b/chrome/content/zotero/recognizePDF.js index 102328dc0..5fc95aa3b 100644 --- a/chrome/content/zotero/recognizePDF.js +++ b/chrome/content/zotero/recognizePDF.js @@ -39,8 +39,8 @@ var Zotero_RecognizePDF = new function() { * @returns {Boolean} True if the PDF can be recognized, false if it cannot be */ this.canRecognize = function(/**Zotero.Item*/ item) { - return item.attachmentMIMEType - && item.attachmentMIMEType == "application/pdf" + return item.attachmentContentType + && item.attachmentContentType == "application/pdf" && item.isTopLevelItem(); }