Update compendium-browser.js

pull/1/head
Matheus Clemente 2023-11-14 03:20:45 -03:00
parent 514cb593ab
commit d7544c09c4
1 changed files with 1 additions and 8 deletions

View File

@ -58,12 +58,7 @@ class CompendiumBrowser extends Application {
/** @override */ /** @override */
async getData() { async getData() {
// 0.4.1 Filter as we load to support new way of filtering return {
// Previously loaded all data and filtered in place; now loads minimal (preload) amount, filtered as we go
// First time (when you press Compendium Browser button) is called with filters unset
// 0.4.1k: Don't do any item/npc loading until tab is visible
let data = {
items: [], items: [],
npcs: [], npcs: [],
spellFilters: this.spellFilters, spellFilters: this.spellFilters,
@ -77,8 +72,6 @@ class CompendiumBrowser extends Application {
settings: this.settings, settings: this.settings,
isGM: game.user.isGM, isGM: game.user.isGM,
}; };
return data;
} }
activateItemListListeners(html) { activateItemListListeners(html) {