diff --git a/contrib/webconsole/torrent_client.html b/contrib/webconsole/torrent_client.html index 40e1889f..b2e907f0 100644 --- a/contrib/webconsole/torrent_client.html +++ b/contrib/webconsole/torrent_client.html @@ -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]);