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
*/
this.canRecognize = function(/**Zotero.Item*/ item) {
return item.attachmentMIMEType
&& item.attachmentMIMEType == "application/pdf"
return item.attachmentContentType
&& item.attachmentContentType == "application/pdf"
&& item.isTopLevelItem();
}