mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-01-11 22:40:31 +00:00
fix(player): options video - download video should prefer downloadUrl instead of streamingUrl
Signed-off-by: Lachezar Lechev <lachezar@ambire.com>
This commit is contained in:
parent
5f1841bfb8
commit
4c407392dd
1 changed files with 2 additions and 2 deletions
|
|
@ -54,8 +54,8 @@ const OptionsMenu = ({ className, stream, playbackDevices, extraSubtitlesTracks,
|
||||||
}
|
}
|
||||||
}, [streamingUrl, downloadUrl]);
|
}, [streamingUrl, downloadUrl]);
|
||||||
const onDownloadVideoButtonClick = React.useCallback(() => {
|
const onDownloadVideoButtonClick = React.useCallback(() => {
|
||||||
if (streamingUrl || downloadUrl) {
|
if (downloadUrl || streamingUrl ) {
|
||||||
platform.openExternal(streamingUrl || downloadUrl);
|
platform.openExternal(downloadUrl || streamingUrl);
|
||||||
}
|
}
|
||||||
}, [streamingUrl, downloadUrl]);
|
}, [streamingUrl, downloadUrl]);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue