Don't trigger error in Google Scholar if called with no items (since the PDF recognition process does this)

This commit is contained in:
Dan Stillman 2009-07-22 08:05:19 +00:00
parent d55f874881
commit 04660acbd1

View file

@ -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) {