fix chromium
Msrc/client-index.ts
| @@ -53,8 +53,8 @@ async function uploadFile() { | |||
|---|---|---|---|
| 53 | 53 | return | |
| 54 | 54 | } | |
| 55 | 55 | ||
| 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) | |
| 58 | 58 | ||
| 59 | 59 | const myFile = new File([encryptedContent], file.name) | |
| 60 | 60 | const dataTransfer = new DataTransfer() | |