Avoid deprecation warning in recognizePDF
This commit is contained in:
parent
9a43b53ebe
commit
e01cb38c5d
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue