Skip to content

Commit

Permalink
fix: Housekeeping
Browse files Browse the repository at this point in the history
  • Loading branch information
Wenzhi-Ding committed Jan 10, 2025
1 parent 9279947 commit ef89bdc
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions Foreign Affairs.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,7 @@ function getSearchResults(doc, checkOnly) {
var items = {};
var found = false;

// let isIssues = /^https:\/\/[^/]+\/issues\/.+/.test(doc.location.href);
let isIssues = /^\/issues\/.+/.test(doc.location.pathname);
// let isSearch = /^https:\/\/[^/]+\/search\/.+/.test(doc.location.href);
let isSearch = /^\/search\/.+/.test(doc.location.pathname);

let rows = [];
Expand Down Expand Up @@ -94,8 +92,6 @@ async function scrape(doc, url = doc.location.href) {
if (issueNode) {
var volumeTitle = ZU.trimInternal(issueNode.textContent.trim());
if (volumeTitle) {
// if (!item.extra) item.extra = "";
// item.extra += `\nVolume Title: ${volumeTitle}`;
item.setExtra('Volume Title', volumeTitle);
}

Expand All @@ -120,7 +116,6 @@ async function scrape(doc, url = doc.location.href) {
item.creators.push(ZU.cleanAuthor(aut, "author"));
}

// var tags = doc.querySelectorAll('.mr-15');
var tags = doc.querySelectorAll(
'a[href^="/regions/"].text-decoration-none, ' +

Check failure on line 120 in Foreign Affairs.js

View workflow job for this annotation

GitHub Actions / Lint, Check, Test

'+' should be placed at the beginning of the line
'a[href^="/topics/"].text-decoration-none, ' +

Check failure on line 121 in Foreign Affairs.js

View workflow job for this annotation

GitHub Actions / Lint, Check, Test

'+' should be placed at the beginning of the line
Expand Down

0 comments on commit ef89bdc

Please sign in to comment.