Load icons during initial setup and allow hot-reloading icons

This commit is contained in:
Oliver-Akins 2024-01-31 18:34:24 -07:00
parent b9ed3289dc
commit a657b2e3e8
6 changed files with 49 additions and 44 deletions

View file

@ -1,5 +1,4 @@
import DOTDUNGEON from "../config.mjs";
import { preloadIcons } from "../handlebars.mjs";
export class GenericActorSheet extends ActorSheet {
_expanded = new Set();
@ -29,7 +28,7 @@ export class GenericActorSheet extends ActorSheet {
ctx.actor = this.actor;
ctx.config = DOTDUNGEON;
ctx.icons = await preloadIcons();
ctx.icons = CONFIG.CACHE.icons;
return ctx;
};