Avoid deprecation warning in recognizePDF

This commit is contained in:
Dan Stillman 2017-12-08 00:10:26 -05:00
parent 9a43b53ebe
commit e01cb38c5d

View file

@ -39,8 +39,8 @@ var Zotero_RecognizePDF = new function() {
* @returns {Boolean} True if the PDF can be recognized, false if it cannot be * @returns {Boolean} True if the PDF can be recognized, false if it cannot be
*/ */
this.canRecognize = function(/**Zotero.Item*/ item) { this.canRecognize = function(/**Zotero.Item*/ item) {
return item.attachmentMIMEType return item.attachmentContentType
&& item.attachmentMIMEType == "application/pdf" && item.attachmentContentType == "application/pdf"
&& item.isTopLevelItem(); && item.isTopLevelItem();
} }