mirror of
https://github.com/NoCrypt/migu.git
synced 2026-04-21 00:22:08 +00:00
fix: throttle
This commit is contained in:
parent
5057d4473a
commit
fe565234bd
2 changed files with 2 additions and 1 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "Miru",
|
"name": "Miru",
|
||||||
"version": "3.3.4",
|
"version": "3.3.5",
|
||||||
"author": "ThaUnknown_ <ThaUnknown@users.noreply.github.com>",
|
"author": "ThaUnknown_ <ThaUnknown@users.noreply.github.com>",
|
||||||
"description": "Stream anime torrents, real-time with no waiting for downloads.",
|
"description": "Stream anime torrents, real-time with no waiting for downloads.",
|
||||||
"main": "src/index.js",
|
"main": "src/index.js",
|
||||||
|
|
|
||||||
|
|
@ -79,6 +79,7 @@ export function throttle (cb, limit) {
|
||||||
cb()
|
cb()
|
||||||
wait = true
|
wait = true
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
cb()
|
||||||
wait = false
|
wait = false
|
||||||
}, limit)
|
}, limit)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue