From 8d72db27f0ff468f889e39e354605c7bbe90ec0d Mon Sep 17 00:00:00 2001 From: zyrouge Date: Wed, 27 Sep 2023 22:59:49 +0530 Subject: [PATCH] refactor: remove redirect timeout --- src/assets/scripts/redirect.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/assets/scripts/redirect.ts b/src/assets/scripts/redirect.ts index f0a36e7..60c56c2 100644 --- a/src/assets/scripts/redirect.ts +++ b/src/assets/scripts/redirect.ts @@ -3,9 +3,7 @@ document.addEventListener("DOMContentLoaded", () => { "meta[name='redirect-url']", )?.content; if (!url) return; - setTimeout(() => { - location.assign(url); - }, 2000); + location.assign(url); }); export {};