This commit is contained in:
2025-09-18 10:43:10 +02:00
parent 5186b26408
commit ddae4ad4b0
2 changed files with 17 additions and 13 deletions
+5 -2
View File
@@ -1,10 +1,13 @@
Hooks.once('init', () => {
Hooks.once('init', async () => {
try {
if (typeof Handlebars?.registerHelper === "function") {
Handlebars.registerHelper("json", (ctx) => JSON.stringify(ctx ?? {}, null, 2));
}
await loadTemplates([
"modules/wg-voidships-builder/templates/voidship-sheet.hbs"
]);
} catch (e) {
console.warn("wg-voidships-builder: handlebars helper failed", e);
console.warn("wg-voidships-builder: init failed", e);
}
});