Permalink
Browse files

Update Google Patents.js (#1657)

  • Loading branch information...
zuphilip committed May 13, 2018
1 parent 89869f7 commit 75d043f19a6de4636b37a3356a6a9235a0c284db
Showing with 4 additions and 4 deletions.
  1. +4 −4 Google Patents.js
View
@@ -9,7 +9,7 @@
"inRepository": true,
"translatorType": 4,
"browserSupport": "gcsibv",
"lastUpdated": "2018-03-09 07:50:46"
"lastUpdated": "2018-05-13 08:27:02"
}
/*
@@ -54,13 +54,13 @@ function detectWeb(doc, url) {
// The subtree changes from multiple search results to a single result
// when clicking on one entry or back to the search results, and thus
// we have to monitor this.
Z.monitorDOMChanges(ZU.xpath(doc, '//search-app/div')[0]);
Z.monitorDOMChanges(ZU.xpath(doc, '//search-app')[0]);
// Plural with "s" vs. singular without
if (ZU.xpathText(doc, '//search-app/div/search-results')) {
if (ZU.xpathText(doc, '//search-app/search-results')) {
return "multiple";
}
if (ZU.xpathText(doc, '//search-app/div/search-result')) {
if (ZU.xpathText(doc, '//search-app/search-result')) {
return "patent";
}
}

0 comments on commit 75d043f

Please sign in to comment.