mirror of
https://github.com/Sped0n/bridget.git
synced 2026-04-22 14:09:30 -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
|
ease: Power3.easeInOut
|
||||||
})
|
})
|
||||||
// finished
|
// finished
|
||||||
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
|
||||||
tl.then(() => {
|
tl.then(() => {
|
||||||
isAnimating.set(false)
|
isAnimating.set(false)
|
||||||
|
}).catch((e) => {
|
||||||
|
console.log(e)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -185,9 +186,10 @@ export function minimizeImage(): void {
|
|||||||
opacity: 1
|
opacity: 1
|
||||||
})
|
})
|
||||||
// finished
|
// finished
|
||||||
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
|
||||||
tl.then(() => {
|
tl.then(() => {
|
||||||
isAnimating.set(false)
|
isAnimating.set(false)
|
||||||
|
}).catch((e) => {
|
||||||
|
console.log(e)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user