From 21886f2277df6352c6e9d0fd71a19d94d4d081f8 Mon Sep 17 00:00:00 2001 From: ThaUnknown <6506529+ThaUnknown@users.noreply.github.com> Date: Wed, 23 Aug 2023 12:46:31 +0200 Subject: [PATCH] fix: errors on buffer transfer fix: menubar background position --- package.json | 2 +- src/background/background.js | 4 ++-- src/renderer/components/Menubar.svelte | 5 ++++- 3 files changed, 7 insertions(+), 4 deletions(-) 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 @@ } -