Actually instantiate the system in Foundry correctly

This commit is contained in:
Oliver-Akins 2024-12-10 22:39:47 -07:00
parent 7af02261d6
commit 49c37b66f8
3 changed files with 8 additions and 2 deletions

View file

@ -1,3 +1,5 @@
import { Logger } from "../utils/Logger.mjs";
const loaders = {
svg(data) {
const iconName = data.path.split(`/`).slice(-1)[0].slice(0, -4);
@ -14,4 +16,4 @@ const loaders = {
Hooks.on(`hotReload`, async (data) => {
if (!loaders[data.extension]) {return}
return loaders[data.extension](data);
});
});