Don't trigger error in Google Scholar if called with no items (since the PDF recognition process does this)
This commit is contained in:
parent
d55f874881
commit
04660acbd1
1 changed files with 5 additions and 1 deletions
|
@ -8,7 +8,7 @@
|
|||
"maxVersion":"",
|
||||
"priority":100,
|
||||
"inRepository":true,
|
||||
"lastUpdated":"2009-07-13 19:15:00"
|
||||
"lastUpdated":"2009-07-22 08:05:00"
|
||||
}
|
||||
|
||||
function detectWeb(doc, url) {
|
||||
|
@ -47,6 +47,10 @@ function scrape(doc) {
|
|||
i++;
|
||||
}
|
||||
|
||||
if (!items.length) {
|
||||
if(Zotero.done) Zotero.done(true);
|
||||
return;
|
||||
}
|
||||
items = Zotero.selectItems(items);
|
||||
|
||||
if(!items) {
|
||||
|
|
Loading…
Reference in a new issue