Skip to content

Commit

Permalink
fix error in attachment check for getOutline
Browse files Browse the repository at this point in the history
  • Loading branch information
jlegewie committed Apr 13, 2016
1 parent 2c0e4e6 commit 3175c74
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions chrome/content/zotfile/zotfile.js
Expand Up @@ -3427,11 +3427,9 @@ Zotero.ZotFile = {
}
// get attachment item, parent and file
this.atts = Zotero.Items.get(attIDs)
.filter(function(att) {
if(!att.isAttachment())
return false;
return att.isAttachment() && att.getFile().exists() && att.attachmentMIMEType.indexOf('pdf') != -1;
});
.filter(att => att.isAttachment())
.filter(att => att.getFile())
.filter(att => att.getFile().exists() && att.attachmentMIMEType.indexOf('pdf') != -1);
if (this.atts.length==0)
return;
if (Zotero.isFx36) {
Expand Down

0 comments on commit 3175c74

Please sign in to comment.