mirror of
https://github.com/MetaCubeX/metacubexd.git
synced 2024-12-27 07:34:12 +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)
|
||||
await cb()
|
||||
try {
|
||||
await cb()
|
||||
} catch {}
|
||||
el.classList.remove(className)
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user