Move initialization code to the right place
This commit is contained in:
parent
37dd7484bd
commit
9d7ce1ede8
1 changed files with 5 additions and 5 deletions
10
js/items.js
10
js/items.js
|
@ -231,11 +231,6 @@ function resetItemSearch() {
|
||||||
function init_items() {
|
function init_items() {
|
||||||
searchDb = items.filter( i => ! i.remapID ).map( i => [i, expandItem(i, [])] );
|
searchDb = items.filter( i => ! i.remapID ).map( i => [i, expandItem(i, [])] );
|
||||||
exprParser = new ExprParser(itemQueryProps, itemQueryFuncs);
|
exprParser = new ExprParser(itemQueryProps, itemQueryFuncs);
|
||||||
}
|
|
||||||
|
|
||||||
(async function() {
|
|
||||||
await Promise.resolve(load_init());
|
|
||||||
init_items();
|
|
||||||
//init dropdowns
|
//init dropdowns
|
||||||
let filterInputs = new Map([["item-category", ["ALL", "armor", "helmet", "chestplate", "leggings", "boots", "accessory", "ring", "bracelet", "necklace", "weapon", "wand", "spear", "bow", "dagger", "relik"]],
|
let filterInputs = new Map([["item-category", ["ALL", "armor", "helmet", "chestplate", "leggings", "boots", "accessory", "ring", "bracelet", "necklace", "weapon", "wand", "spear", "bow", "dagger", "relik"]],
|
||||||
["item-rarity", ["ANY", "Normal", "Unique", "Set", "Rare", "Legendary", "Fabled", "Mythic", "Sane"]],
|
["item-rarity", ["ANY", "Normal", "Unique", "Set", "Rare", "Legendary", "Fabled", "Mythic", "Sane"]],
|
||||||
|
@ -289,4 +284,9 @@ function init_items() {
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
(async function() {
|
||||||
|
await Promise.resolve(load_init());
|
||||||
|
init_items();
|
||||||
})();
|
})();
|
||||||
|
|
Loading…
Reference in a new issue