mirror of
https://github.com/MetaCubeX/metacubexd.git
synced 2024-11-24 09:45:35 +08:00
chore: btn animate with try catch
This commit is contained in:
parent
a17be36d92
commit
1729329c58
@ -18,7 +18,9 @@ export const handlerBtnClickWithAnimate = async (
|
|||||||
}
|
}
|
||||||
|
|
||||||
el.classList.add(className)
|
el.classList.add(className)
|
||||||
await cb()
|
try {
|
||||||
|
await cb()
|
||||||
|
} catch {}
|
||||||
el.classList.remove(className)
|
el.classList.remove(className)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user