mirror of https://github.com/stashapp/stash.git
Fix exception when scene preview is unavailable (#1477)
This commit is contained in:
parent
7164bb28ac
commit
2ce4d9f0d8
|
@ -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 New Issue