Skip to content

Commit

Permalink
refactor: remove redirect timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
zyrouge committed Sep 27, 2023
1 parent 91b3103 commit 8d72db2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/assets/scripts/redirect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ document.addEventListener("DOMContentLoaded", () => {
"meta[name='redirect-url']",
)?.content;
if (!url) return;
setTimeout(() => {
location.assign(url);
}, 2000);
location.assign(url);
});

export {};

0 comments on commit 8d72db2

Please sign in to comment.