Skip to content

Commit

Permalink
Avoid deprecation warning in recognizePDF
Browse files Browse the repository at this point in the history
  • Loading branch information
dstillman committed Dec 8, 2017
1 parent 9a43b53 commit e01cb38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chrome/content/zotero/recognizePDF.js
Expand Up @@ -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();
}

Expand Down

0 comments on commit e01cb38

Please sign in to comment.