www

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

commit e01cb38c5d11b4984f0d41926ff9694882830f22
parent 9a43b53ebe200e87eeb92796a86351022f18861f
Author: Dan Stillman <dstillman@zotero.org>
Date:   Fri,  8 Dec 2017 00:10:26 -0500

Avoid deprecation warning in recognizePDF

Diffstat:
Mchrome/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 @@ -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(); }