Fix regression in Zotero.FullText.canReindex()

This commit is contained in:
Dan Stillman 2024-01-13 08:19:57 -05:00
parent 3b9afcc500
commit b34d0d2acc

View file

@ -1446,7 +1446,7 @@ Zotero.Fulltext = Zotero.FullText = new function(){
* Item must be a non-web-link attachment that isn't already fully indexed * Item must be a non-web-link attachment that isn't already fully indexed
*/ */
this.canReindex = Zotero.Promise.coroutine(function* (item) { this.canReindex = Zotero.Promise.coroutine(function* (item) {
if (!item.canIndex(item)) { if (!this.canIndex(item)) {
return false; return false;
} }
switch (yield this.getIndexedState(item)) { switch (yield this.getIndexedState(item)) {