From 210856a7be4631540791bad027fb3ef0f7a51f14 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 10 Nov 2020 14:15:59 +0100 Subject: Try to fix live segments check --- client/src/root-helpers/utils.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'client/src/root-helpers') 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) { }) } +function wait (ms: number) { + return new Promise(res => { + setTimeout(() => res(), ms) + }) +} + export { importModule, - objectToUrlEncoded + objectToUrlEncoded, + wait } -- cgit v1.2.3