From 035f79c5665fa082301bf854dc962c6f6208ae71 Mon Sep 17 00:00:00 2001 From: Eric NGUYEN Date: Wed, 21 Sep 2022 16:13:16 +0200 Subject: [PATCH] Fix xhr timeout --- src/Components/API/api.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Components/API/api.ts b/src/Components/API/api.ts index 986b3e3..0971135 100644 --- a/src/Components/API/api.ts +++ b/src/Components/API/api.ts @@ -28,6 +28,7 @@ export async function FetchConfiguration(): Promise { resolve(JSON.parse(this.responseText)); } }; + xhr.timeout = 5000; xhr.send(); }); }