mirror of
https://github.com/Sped0n/bridget.git
synced 2026-04-14 10:09:31 -07:00
fix(stage.ts): add error logging to catch block in expandImage() and minimizeImage() functions for better error handling
This commit is contained in:
@@ -145,9 +145,10 @@ function expandImage(): void {
|
||||
ease: Power3.easeInOut
|
||||
})
|
||||
// finished
|
||||
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
||||
tl.then(() => {
|
||||
isAnimating.set(false)
|
||||
}).catch((e) => {
|
||||
console.log(e)
|
||||
})
|
||||
}
|
||||
|
||||
@@ -185,9 +186,10 @@ export function minimizeImage(): void {
|
||||
opacity: 1
|
||||
})
|
||||
// finished
|
||||
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
||||
tl.then(() => {
|
||||
isAnimating.set(false)
|
||||
}).catch((e) => {
|
||||
console.log(e)
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user