We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f6d71e4 commit 0748c1dCopy full SHA for 0748c1d
APS.js
@@ -9,7 +9,7 @@
9
"inRepository": true,
10
"translatorType": 4,
11
"browserSupport": "gcsibv",
12
- "lastUpdated": "2014-05-08 21:40:24"
+ "lastUpdated": "2014-05-08 21:55:24"
13
}
14
15
function getSearchResults(doc) {
@@ -75,7 +75,7 @@ function scrape(doc, url) {
75
));
76
77
// attach PDF
78
- if(ZU.xpath(doc, '//section[@id="title"]//a[starts-with(text(), "PDF")]')) {
+ if(ZU.xpath(doc, '//section[@id="title"]//a[starts-with(text(), "PDF")]').length) {
79
item.attachments.push({
80
title: 'Full Text PDF',
81
url: url.replace('{REPLACE}', 'pdf'),
0 commit comments