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 = { const loaders = {
svg(data) { svg(data) {
const iconName = data.path.split(`/`).slice(-1)[0].slice(0, -4); const iconName = data.path.split(`/`).slice(-1)[0].slice(0, -4);
@ -14,4 +16,4 @@ const loaders = {
Hooks.on(`hotReload`, async (data) => { Hooks.on(`hotReload`, async (data) => {
if (!loaders[data.extension]) {return} if (!loaders[data.extension]) {return}
return loaders[data.extension](data); return loaders[data.extension](data);
}); });

View file

@ -0,0 +1,4 @@
// Hooks
import "./hooks/init.mjs";
import "./hooks/ready.mjs";
import "./hooks/hotReload.mjs";

View file

@ -19,4 +19,4 @@ export const Logger = new Proxy(console, {
}; };
return target[prop]; return target[prop];
}, },
}); });