Skip to content
Permalink
Browse files

Update Google Patents.js (#1755)

fix pdf url. Relative link in the JSON looks like
`"pdf": "e8/83/1b/e8168d58e6b59a/US7401286.pdf"`
  • Loading branch information...
hpxing authored and adam3smith committed Oct 4, 2018
1 parent 4864d24 commit d769ac331d9ac829ca4b9adcefaa0096dd3e34ec
Showing with 1 addition and 1 deletion.
  1. +1 −1 Google Patents.js
@@ -234,7 +234,7 @@ function scrapeJson(json, url, doc) {
//Relative links don't resolve correctly in all cases. Let's make sure we're getting this all from
//the right place on the google API
if (!pdfurl.includes("https://")) {
pdfurl = "https://patentimages.storage.googleapis.com" + pdfurl;
pdfurl = "https://patentimages.storage.googleapis.com/" + pdfurl;
}
//Z.debug(pdfurl);
item.attachments.push({

0 comments on commit d769ac3

Please sign in to comment.
You can’t perform that action at this time.