mirror of
https://github.com/iptv-org/iptv
synced 2026-10-24 11:58:35 -04:00
Update helper.js
Add sleep function
This commit is contained in:
1 parent
fa03f26c8b
commit
f43a8a2495
1 file changed
+6
@@ -249,6 +249,12 @@ helper.filterGroup = function (groupTitle) {
|
|||||||
return groupTitle
|
return groupTitle
|
||||||
}
|
}
|
||||||
|
|
||||||
|
helper.sleep = function (ms) {
|
||||||
|
return function (x) {
|
||||||
|
return new Promise(resolve => setTimeout(() => resolve(x), ms))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
class Playlist {
|
class Playlist {
|
||||||
constructor(data) {
|
constructor(data) {
|
||||||
this.header = data.header
|
this.header = data.header
|
||||||
|
|||||||
Reference in new issue
Block a user