Skip to content

Commit

Permalink
Don't detect J-Stage PDFs
Browse files Browse the repository at this point in the history
  • Loading branch information
adam3smith committed Apr 27, 2023
1 parent 48a7462 commit a06d6b7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions J-Stage.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"inRepository": true,
"translatorType": 4,
"browserSupport": "gcsibv",
"lastUpdated": "2019-06-15 19:04:11"
"lastUpdated": "2023-04-27 13:09:03"
}

/*
Expand All @@ -35,7 +35,8 @@
*/

function detectWeb(doc, url) {
if (url.includes("/article/")) {
// don't detect on PDF pages
if (url.includes("/article/") && !url.includes("/_pdf")) {
return "journalArticle";
}
else if ((url.includes("/result/") || url.includes("/browse/"))
Expand Down

0 comments on commit a06d6b7

Please sign in to comment.