From 327d4b722c4cd6eee6edecbba33c6d8761a03e76 Mon Sep 17 00:00:00 2001 From: Maciej Caderek Date: Sun, 23 Jan 2022 06:24:13 +0100 Subject: [PATCH] WIP --- src/main.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main.ts b/src/main.ts index c6388b4..ff7eb12 100644 --- a/src/main.ts +++ b/src/main.ts @@ -46,7 +46,7 @@ const play = async (board: Board, pgn: string | null, interval: number) => { }; const createDownloadLink = async (pgn: string, style: Style) => { - const file = await createAnimation(pgn, style, 720, "GIF"); + const file = await createAnimation(pgn, style, 720, "WebM"); const link = document.createElement("a"); link.innerText = "DOWNLOAD"; link.setAttribute("href", URL.createObjectURL(file)); @@ -72,9 +72,9 @@ const main = async () => { const interval = 1000; play(board, pgn, interval); - // createDownloadLink(pgns[2], style).then((link) => { - // document.body.appendChild(link); - // }); + createDownloadLink(pgns[2], style).then((link) => { + document.body.appendChild(link); + }); }; WebFont.load({