From d7fbc458b0ed32d8ca5a72e28974c351a3d93c23 Mon Sep 17 00:00:00 2001 From: Johannes Loher Date: Mon, 12 Jul 2021 01:38:56 +0200 Subject: [PATCH] Fix a bug where character sheets would not load --- src/module/fonts.ts | 2 +- src/module/handlebars/handlebars-partials.ts | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/module/fonts.ts b/src/module/fonts.ts index 25fd62bc..a95d0e55 100644 --- a/src/module/fonts.ts +++ b/src/module/fonts.ts @@ -36,6 +36,6 @@ declare global { const fonts = ["Lora", "Wood Stamp"]; -export async function preloadFonts() { +export async function preloadFonts(): Promise { return Promise.all(fonts.map((font) => document.fonts.load(`1rem ${font}`))); } diff --git a/src/module/handlebars/handlebars-partials.ts b/src/module/handlebars/handlebars-partials.ts index 60067eca..738cf21b 100644 --- a/src/module/handlebars/handlebars-partials.ts +++ b/src/module/handlebars/handlebars-partials.ts @@ -31,7 +31,6 @@ export default async function registerHandlebarsPartials(): Promise { "systems/ds4/templates/sheets/actor/tabs/character-inventory.hbs", "systems/ds4/templates/sheets/actor/tabs/creature-inventory.hbs", "systems/ds4/templates/sheets/actor/tabs/description.hbs", - "systems/ds4/templates/sheets/actor/tabs/profile.hbs", "systems/ds4/templates/sheets/actor/tabs/special-creature-abilities.hbs", "systems/ds4/templates/sheets/actor/tabs/spells.hbs", "systems/ds4/templates/sheets/actor/tabs/values.hbs",