From ce40824a0c376a58895ad602a0ed3b3296484435 Mon Sep 17 00:00:00 2001 From: Shiba <44804845+DeepDoge@users.noreply.github.com> Date: Sat, 30 Apr 2022 23:33:19 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=8D=98=20bugfix,=20filereader=20but=20on?= =?UTF-8?q?=20firefox?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/crypto.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/crypto.ts b/src/common/crypto.ts index 4127af2..54f7a84 100644 --- a/src/common/crypto.ts +++ b/src/common/crypto.ts @@ -172,7 +172,7 @@ async function readFile() { const reader = new FileReader() reader.addEventListener('load', () => resolve(reader.result?.toString() ?? null)) - reader.readAsBinaryString(myFile) + reader.readAsText(myFile) }) }) }