fix: throttle

This commit is contained in:
ThaUnknown 2022-12-12 21:33:32 +01:00
parent 5057d4473a
commit fe565234bd
2 changed files with 2 additions and 1 deletions

View file

@ -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",

View file

@ -79,6 +79,7 @@ export function throttle (cb, limit) {
cb()
wait = true
setTimeout(() => {
cb()
wait = false
}, limit)
}