diff --git a/package.json b/package.json index 1c2940b..8621bbc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "Miru", - "version": "4.3.9", + "version": "4.3.10", "author": "ThaUnknown_ ", "description": "Stream anime torrents, real-time with no waiting for downloads.", "main": "build/main.js", diff --git a/src/background/background.js b/src/background/background.js index 164760f..d78875f 100644 --- a/src/background/background.js +++ b/src/background/background.js @@ -56,8 +56,8 @@ class TorrentClient extends WebTorrent { }) this.dispatch('files', files) this.dispatch('magnet', { magnet: torrent.magnetURI, hash: torrent.infoHash }) - // this will cause errors when only the renderer refreshes, and not the background process, but it's not an issue, for now - this.dispatch('torrent', torrent.torrentFile, [torrent.torrentFile.buffer]) + const clonedTorrentFile = torrent.torrentFile.slice(0) + this.dispatch('torrent', clonedTorrentFile, [clonedTorrentFile.buffer]) } _scrape ({ id, infoHashes }) { diff --git a/src/renderer/components/Menubar.svelte b/src/renderer/components/Menubar.svelte index d3feb69..9451afb 100644 --- a/src/renderer/components/Menubar.svelte +++ b/src/renderer/components/Menubar.svelte @@ -12,7 +12,7 @@ } -