diff --git a/chrome/content/zotero/xpcom/fulltext.js b/chrome/content/zotero/xpcom/fulltext.js index fb140b672..2179a5a0b 100644 --- a/chrome/content/zotero/xpcom/fulltext.js +++ b/chrome/content/zotero/xpcom/fulltext.js @@ -958,7 +958,7 @@ Zotero.Fulltext = Zotero.FullText = new function(){ return; } var itemID = item.id; - var currentVersion = this.getItemVersion(itemID) + var currentVersion = yield this.getItemVersion(itemID) var processorCacheFile = this.getItemProcessorCacheFile(item); var itemCacheFile = this.getItemCacheFile(item); diff --git a/chrome/content/zotero/xpcom/zotero.js b/chrome/content/zotero/xpcom/zotero.js index 34bda8fe3..ad35b5168 100644 --- a/chrome/content/zotero/xpcom/zotero.js +++ b/chrome/content/zotero/xpcom/zotero.js @@ -1781,7 +1781,7 @@ Services.scriptloader.loadSubScript("resource://zotero/polyfill.js"); yield Zotero.DB.executeTransaction(function* () { return Zotero.Tags.purge(); }); - Zotero.Fulltext.purgeUnusedWords(); + yield Zotero.Fulltext.purgeUnusedWords(); yield Zotero.DB.executeTransaction(function* () { return Zotero.Items.purge(); });