From 2bc7017fb9a59ff677a50e69f78a018d30f8727c Mon Sep 17 00:00:00 2001 From: Maciej Caderek Date: Thu, 20 Jan 2022 00:40:22 +0100 Subject: [PATCH] WIP --- src/main.ts | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/main.ts b/src/main.ts index 231b5a1..cf32568 100644 --- a/src/main.ts +++ b/src/main.ts @@ -8,12 +8,6 @@ import createSimpleGIF from "./gif/createSimpleGIF"; // import { decompressPGN } from "./game/PGNHelpers"; import WebFont from "webfontloader"; -WebFont.load({ - google: { - families: ["Ubuntu:500,700", "Fira Code"], - }, -}); - const $app = document.querySelector("#app"); const delay = (ms: number) => new Promise((resolve) => setTimeout(resolve, ms)); @@ -77,4 +71,9 @@ const main = async () => { // }); }; -main(); +WebFont.load({ + google: { + families: ["Ubuntu:500,700", "Fira Code"], + }, + active: main, +});