Fix errors with setTimeout/setInterval

This commit is contained in:
redphx
2024-04-25 17:46:02 +07:00
parent 9b9a7d2bf2
commit 53676ad733
16 changed files with 30 additions and 30 deletions

View File

@@ -25,7 +25,7 @@ export function localRedirect(path: string) {
}, '');
$anchor.addEventListener('click', e => {
// Remove element after clicking on it
setTimeout(() => {
window.setTimeout(() => {
$pageContent.removeChild($anchor);
}, 1000);
});