mirror of
https://github.com/iptv-org/iptv.git
synced 2025-05-16 20:10:04 -04:00
Update helper.js
Add sleep function
This commit is contained in:
parent
ddf7bd8352
commit
2a5e17ad2b
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue