fix chromium

AuthorKonata <konata@posteo.jp>
Date
Commit4aa33599156fb2e541052cd68447c072f28ea250
Parentc6b5de4
1 file changed, 2 insertions(+), 2 deletions(-)
Msrc/client-index.ts
@@ -53,8 +53,8 @@ async function uploadFile() {
5353 return
5454 }
5555
56- const content = await file.bytes()
57- const encryptedContent = await encrypt(content, password)
56+ const content = await file.arrayBuffer()
57+ const encryptedContent = await encrypt(new Uint8Array(content), password)
5858
5959 const myFile = new File([encryptedContent], file.name)
6060 const dataTransfer = new DataTransfer()