mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-10-22 15:21:45 +00:00
fix: reader.result
This commit is contained in:
1 parent
24a66f5a22
commit
a018bfa530
1 file changed
+1
-1
@@ -183,7 +183,7 @@
|
||||
|
||||
const reader = new FileReader();
|
||||
reader.onload = async () => {
|
||||
const bytes = new Uint8Array(reader.arguments);
|
||||
const bytes = new Uint8Array(reader.result);
|
||||
let binary = "";
|
||||
for (let i = 0; i < bytes.byteLength; i++) {
|
||||
binary += String.fromCharCode(bytes[i]);
|
||||
|
||||
Reference in new issue
Block a user