mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-28 21:18:47 +00:00
fix(Player): props issue on open in external player button
This commit is contained in:
parent
f7f72f5d90
commit
13fa0d8d4e
1 changed files with 2 additions and 2 deletions
|
|
@ -589,8 +589,8 @@ const Player = ({ urlParams, queryParams }) => {
|
|||
<div className={classnames(styles['layer'], styles['error-layer'])}>
|
||||
<div className={styles['error-label']} title={error.message}>{error.message}</div>
|
||||
{
|
||||
player.selected !== null ?
|
||||
<Button {...player.selected.stream.deepLinks.externalPlayer} className={styles['playlist-button']} title={'Open in external player'} target={'_blank'}>
|
||||
player.selected !== null && player.selected.stream && player.selected.stream.deepLinks && player.selected.stream.deepLinks.externalPlayer ?
|
||||
<Button className={styles['playlist-button']} title={'Open in external player'} href={player.selected.stream.deepLinks.externalPlayer.href} download={player.selected.stream.deepLinks.externalPlayer.fileName} target={'_blank'}>
|
||||
<Icon className={styles['icon']} icon={'ic_downloads'} />
|
||||
<div className={styles['label']}>Open in external player</div>
|
||||
</Button>
|
||||
|
|
|
|||
Loading…
Reference in a new issue