diff --git a/scripts/helper.js b/scripts/helper.js index 471e0b7ba6..553706530e 100644 --- a/scripts/helper.js +++ b/scripts/helper.js @@ -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