Fix a bug where character sheets would not load
This commit is contained in:
parent
8633afa1d2
commit
d7fbc458b0
2 changed files with 1 additions and 2 deletions
|
@ -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}`)));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue