Update compendium-browser.js

2.0
Matheus Clemente 2023-11-08 18:04:00 -03:00
parent 4eb3821a8e
commit 2c65d1449c
1 changed files with 0 additions and 5 deletions

View File

@ -405,7 +405,6 @@ class CompendiumBrowser extends Application {
} }
async loadAndFilterItems(browserTab = "spell", updateLoading = null) { async loadAndFilterItems(browserTab = "spell", updateLoading = null) {
console.time("loadAndFilterItems");
await this.checkListsLoaded(); await this.checkListsLoaded();
const seachNumber = Date.now(); const seachNumber = Date.now();
@ -552,7 +551,6 @@ class CompendiumBrowser extends Application {
} }
this.itemsLoaded = true; this.itemsLoaded = true;
console.timeEnd("loadAndFilterItems");
updateLoading(numItemsLoaded, true); updateLoading(numItemsLoaded, true);
return compactItems; return compactItems;
} }
@ -561,7 +559,6 @@ class CompendiumBrowser extends Application {
const seachNumber = Date.now(); const seachNumber = Date.now();
this.CurrentSeachNumber = seachNumber; this.CurrentSeachNumber = seachNumber;
console.time("loadAndFilterNpcs");
let npcs = {}; let npcs = {};
let numNpcsLoaded = 0; let numNpcsLoaded = 0;
@ -639,13 +636,11 @@ class CompendiumBrowser extends Application {
} else if (e == NOT_MIGRATED) { } else if (e == NOT_MIGRATED) {
console.log("Cannot browse compendium %s as it is not migrated to v10 format", collectionName); console.log("Cannot browse compendium %s as it is not migrated to v10 format", collectionName);
} else { } else {
console.timeEnd("loadAndFilterNpcs");
throw e; throw e;
} }
} }
this.npcsLoaded = true; this.npcsLoaded = true;
console.timeEnd("loadAndFilterNpcs");
updateLoading(numNpcsLoaded, true); updateLoading(numNpcsLoaded, true);
return npcs; return npcs;
} }