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) } /**