mirror of
https://github.com/NoCrypt/migu.git
synced 2026-03-29 05:48:42 +00:00
fix: try to reduce initial load lag
This commit is contained in:
parent
450c6d6311
commit
15e8ecf357
3 changed files with 7 additions and 3387 deletions
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "Miru",
|
||||
"version": "2.4.5",
|
||||
"version": "2.4.6",
|
||||
"author": "ThaUnknown_ <ThaUnknown@users.noreply.github.com>",
|
||||
"main": "src/index.js",
|
||||
"homepage": "https://github.com/ThaUnknown/miru#readme",
|
||||
|
|
@ -109,7 +109,7 @@
|
|||
"pump": "^3.0.0",
|
||||
"range-parser": "^1.2.1",
|
||||
"svelte-keybinds": "^1.0.4",
|
||||
"svelte-miniplayer": "^1.0.1",
|
||||
"svelte-miniplayer": "^1.0.2",
|
||||
"webtorrent": "^1.8.14"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
3382
pnpm-lock.yaml
3382
pnpm-lock.yaml
File diff suppressed because it is too large
Load diff
|
|
@ -45,7 +45,9 @@ client.on('torrent', ({ detail }) => {
|
|||
|
||||
// load last used torrent
|
||||
queueMicrotask(() => {
|
||||
if (localStorage.getItem('torrent')) {
|
||||
client.send('torrent', JSON.parse(localStorage.getItem('torrent')))
|
||||
}
|
||||
setTimeout(() => {
|
||||
if (localStorage.getItem('torrent')) {
|
||||
client.send('torrent', JSON.parse(localStorage.getItem('torrent')))
|
||||
}
|
||||
}, 3000)
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in a new issue