diff options
author | Chocobozzz <me@florianbigard.com> | 2020-11-10 14:15:59 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-11-10 14:15:59 +0100 |
commit | 210856a7be4631540791bad027fb3ef0f7a51f14 (patch) | |
tree | db187b29a37fb1cfba1c7f97efb8a145b1f1a149 /client/src/root-helpers | |
parent | 52a350a15c34aa13bffaeedeb39de37cb0534fde (diff) | |
download | PeerTube-210856a7be4631540791bad027fb3ef0f7a51f14.tar.gz PeerTube-210856a7be4631540791bad027fb3ef0f7a51f14.tar.zst PeerTube-210856a7be4631540791bad027fb3ef0f7a51f14.zip |
Try to fix live segments check
Diffstat (limited to 'client/src/root-helpers')
-rw-r--r-- | client/src/root-helpers/utils.ts | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/client/src/root-helpers/utils.ts b/client/src/root-helpers/utils.ts index 6df151ad9..de4e08bf5 100644 --- a/client/src/root-helpers/utils.ts +++ b/client/src/root-helpers/utils.ts | |||
@@ -44,7 +44,14 @@ function importModule (path: string) { | |||
44 | }) | 44 | }) |
45 | } | 45 | } |
46 | 46 | ||
47 | function wait (ms: number) { | ||
48 | return new Promise(res => { | ||
49 | setTimeout(() => res(), ms) | ||
50 | }) | ||
51 | } | ||
52 | |||
47 | export { | 53 | export { |
48 | importModule, | 54 | importModule, |
49 | objectToUrlEncoded | 55 | objectToUrlEncoded, |
56 | wait | ||
50 | } | 57 | } |