Update compendium-browser.js
parent
514cb593ab
commit
d7544c09c4
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue