From e22ff7d20ed27939f56d3bbd7bdfd0d1cddc3d72 Mon Sep 17 00:00:00 2001 From: steve02081504 Date: Sun, 1 Sep 2024 15:00:25 +0800 Subject: [PATCH] Update main.mjs --- src/page/main.mjs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/page/main.mjs b/src/page/main.mjs index 44599bd..82895d9 100644 --- a/src/page/main.mjs +++ b/src/page/main.mjs @@ -125,6 +125,7 @@ async function loadFile(file, filetype) { if (!cards.length) logsElement.innerHTML = "No cards found" } else cards = [file] + if (file instanceof Blob && filetype == 'application/json') cards = [await file.text()] return loadCards(cards) } /**