mirror of
https://github.com/iptv-org/iptv.git
synced 2026-10-19 16:52:34 -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
|
||||
}
|
||||
|
||||
helper.sleep = function (ms) {
|
||||
return function (x) {
|
||||
return new Promise(resolve => setTimeout(() => resolve(x), ms))
|
||||
}
|
||||
}
|
||||
|
||||
class Playlist {
|
||||
constructor(data) {
|
||||
this.header = data.header
|
||||
|
||||
Reference in new issue
Block a user