diff --git a/scripts/helper.js b/scripts/helper.js index 471e0b7ba..553706530 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