PDF url fixes from nxmehta in the forums
This commit is contained in:
parent
ff5631d9ec
commit
12229b3509
2 changed files with 2 additions and 1 deletions
|
@ -62,6 +62,7 @@ function scrape(doc) {
|
|||
var typeLink;
|
||||
while(typeLink = typeLinks.iterateNext()) {
|
||||
var linkText = typeLink.textContent.toLowerCase();
|
||||
linkText = linkText.replace(/(\t|\n| )/g, "");
|
||||
if(linkText == "pdf") {
|
||||
attachments.push({title:"ACM Full Text PDF", mimeType:"application/pdf", url:typeLink.href});
|
||||
url = typeLink.href;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue