mirror of
https://github.com/stashapp/stash.git
synced 2026-02-16 12:22:18 +01:00
Fix exception when scene preview is unavailable (#1477)
This commit is contained in:
parent
7164bb28ac
commit
2ce4d9f0d8
1 changed files with 1 additions and 1 deletions
|
|
@ -35,7 +35,7 @@ export const ScenePreview: React.FC<IScenePreviewProps> = ({
|
|||
entries.forEach((entry) => {
|
||||
if (entry.intersectionRatio > 0)
|
||||
// Catch is necessary due to DOMException if user hovers before clicking on page
|
||||
videoEl.current?.play().catch(() => {});
|
||||
videoEl.current?.play()?.catch(() => {});
|
||||
else videoEl.current?.pause();
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue