Skip to content
Permalink
Browse files

Wired.js -- fix eslint warnings

  • Loading branch information...
retorquere committed Feb 25, 2019
1 parent 940db2e commit 884f07be9d0112579646a013333a936b9553e26c
Showing with 16 additions and 16 deletions.
  1. +16 −16 Wired.js
@@ -110,21 +110,21 @@ function getSearchResults(doc, checkOnly) {

function doWeb(doc, url) {
switch (detectWeb(doc, url)) {
case "multiple":
Zotero.selectItems(getSearchResults(doc, false), function (items) {
if (!items) {
return true;
}
var articles = [];
for (var i in items) {
articles.push(i);
}
ZU.processDocuments(articles, scrape);
});
break;
case "magazineArticle":
scrape(doc, url);
break;
case "multiple":
Zotero.selectItems(getSearchResults(doc, false), function (items) {
if (!items) {
return true;
}
var articles = [];
for (var i in items) {
articles.push(i);
}
ZU.processDocuments(articles, scrape);
});
break;
case "magazineArticle":
scrape(doc, url);
break;
}
}
/** BEGIN TEST CASES **/
@@ -296,5 +296,5 @@ var testCases = [
"url": "https://www.wired.co.uk/search?q=kickstarter",
"items": "multiple"
}
]
];
/** END TEST CASES **/

0 comments on commit 884f07b

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