mirror of
https://github.com/NoCrypt/migu.git
synced 2026-03-29 13:59:09 +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",
|
||||
"version": "3.3.4",
|
||||
"version": "3.3.5",
|
||||
"author": "ThaUnknown_ <ThaUnknown@users.noreply.github.com>",
|
||||
"description": "Stream anime torrents, real-time with no waiting for downloads.",
|
||||
"main": "src/index.js",
|
||||
|
|
|
|||
|
|
@ -79,6 +79,7 @@ export function throttle (cb, limit) {
|
|||
cb()
|
||||
wait = true
|
||||
setTimeout(() => {
|
||||
cb()
|
||||
wait = false
|
||||
}, limit)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue