mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-08 17:16:25 +01:00
More queueMicrotask
This commit is contained in:
parent
fe54eb11a7
commit
f5b1b924a5
1 changed files with 7 additions and 5 deletions
12
src/app.jsx
12
src/app.jsx
|
@ -124,11 +124,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) {
|
||||||
if (Array.isArray(ICONS[icon])) {
|
queueMicrotask(() => {
|
||||||
ICONS[icon][0]?.();
|
if (Array.isArray(ICONS[icon])) {
|
||||||
} else {
|
ICONS[icon][0]?.();
|
||||||
ICONS[icon]?.();
|
} else {
|
||||||
}
|
ICONS[icon]?.();
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}, 5000);
|
}, 5000);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue