Skip to content

Commit 86bee61

Browse files
fix: ignore interrupted hero playback (#1378)
1 parent 1ec8b82 commit 86bee61

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎src/components/home/HeroPalmMedia.tsx‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ export function HeroPalmMedia() {
1313
.play()
1414
.then(() => setIsVideoReady(true))
1515
.catch((error: unknown) => {
16+
if (error instanceof DOMException && error.name === 'AbortError') return
1617
console.error('Unable to play the homepage hero animation', error)
1718
setIsPlaying(false)
1819
setIsVideoReady(false)

0 commit comments

Comments
 (0)