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