Use setTimeout instead
This commit is contained in:
parent
098014a109
commit
1ffc1c257a
1 changed files with 2 additions and 2 deletions
|
@ -126,13 +126,13 @@ setInterval(() => {
|
||||||
// Related: https://github.com/vitejs/vite/issues/10600
|
// Related: https://github.com/vitejs/vite/issues/10600
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
for (const icon in ICONS) {
|
for (const icon in ICONS) {
|
||||||
queueMicrotask(() => {
|
setTimeout(() => {
|
||||||
if (Array.isArray(ICONS[icon])) {
|
if (Array.isArray(ICONS[icon])) {
|
||||||
ICONS[icon][0]?.();
|
ICONS[icon][0]?.();
|
||||||
} else {
|
} else {
|
||||||
ICONS[icon]?.();
|
ICONS[icon]?.();
|
||||||
}
|
}
|
||||||
});
|
}, 1);
|
||||||
}
|
}
|
||||||
}, 5000);
|
}, 5000);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue