Fix a bug where character sheets would not load

This commit is contained in:
Johannes Loher 2021-07-12 01:38:56 +02:00
parent 8633afa1d2
commit d7fbc458b0
2 changed files with 1 additions and 2 deletions

View file

@ -36,6 +36,6 @@ declare global {
const fonts = ["Lora", "Wood Stamp"];
export async function preloadFonts() {
export async function preloadFonts(): Promise<FontFace[][]> {
return Promise.all(fonts.map((font) => document.fonts.load(`1rem ${font}`)));
}