mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-11 17:15:48 +00:00
trailer href fixed
This commit is contained in:
parent
961b9727ff
commit
1d977dc5c1
1 changed files with 6 additions and 4 deletions
|
|
@ -64,10 +64,12 @@ const MetaPreview = ({ className, compact, name, logo, background, runtime, rele
|
|||
[];
|
||||
}, [links]);
|
||||
const trailerHref = React.useMemo(() => {
|
||||
return typeof trailer === 'object' && trailer !== null ?
|
||||
deepLinking.withStream({ stream: trailer }).player
|
||||
:
|
||||
null;
|
||||
if (typeof trailer !== 'object' || trailer === null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
const deepLinks = deepLinking.withStream({ stream: trailer });
|
||||
return deepLinks.player;
|
||||
}, [trailer]);
|
||||
const renderLogoFallback = React.useMemo(() => () => (
|
||||
<Icon className={styles['logo-placeholder-icon']} icon={'ic_broken_link'} />
|
||||
|
|
|
|||
Loading…
Reference in a new issue