Actually instantiate the system in Foundry correctly
This commit is contained in:
parent
7af02261d6
commit
49c37b66f8
3 changed files with 8 additions and 2 deletions
|
|
@ -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);
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
// Hooks
|
||||||
|
import "./hooks/init.mjs";
|
||||||
|
import "./hooks/ready.mjs";
|
||||||
|
import "./hooks/hotReload.mjs";
|
||||||
|
|
@ -19,4 +19,4 @@ export const Logger = new Proxy(console, {
|
||||||
};
|
};
|
||||||
return target[prop];
|
return target[prop];
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue