]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/root-helpers/utils.ts
Try to fix live segments check
[github/Chocobozzz/PeerTube.git] / client / src / root-helpers / utils.ts
index 6df151ad9bc4dfa0b029247397ac549d0dc98da8..de4e08bf593f03b8d7e001b420a71c1303b13563 100644 (file)
@@ -44,7 +44,14 @@ function importModule (path: string) {
   })
 }
 
+function wait (ms: number) {
+  return new Promise(res => {
+    setTimeout(() => res(), ms)
+  })
+}
+
 export {
   importModule,
-  objectToUrlEncoded
+  objectToUrlEncoded,
+  wait
 }