mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 20:34:37 +03:00
Fix exception when scene preview is unavailable (#1477)
This commit is contained in:
@@ -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();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user