Update helper.js

Add sleep function
pull/2021/head
freearhey 4 years ago
parent ddf7bd8352
commit 2a5e17ad2b

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

Loading…
Cancel
Save