mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-19 22:12:13 +00:00
refactor(ControlBar): use replace method instead of href
This commit is contained in:
parent
205f3c605a
commit
49cf06a8c2
1 changed files with 2 additions and 2 deletions
|
|
@ -55,9 +55,9 @@ const ControlBar = ({
|
|||
const onNextVideoButtonClick = React.useCallback(() => {
|
||||
if (nextVideo !== null && typeof nextVideo.deepLinks === 'object') {
|
||||
if (nextVideo.deepLinks.player !== null) {
|
||||
window.location.href = nextVideo.deepLinks.player;
|
||||
window.location.replace(nextVideo.deepLinks.player);
|
||||
} else if (nextVideo.deepLinks.metaDetailsStreams !== null) {
|
||||
window.location.href = nextVideo.deepLinks.metaDetailsStreams;
|
||||
window.location.replace(nextVideo.deepLinks.metaDetailsStreams);
|
||||
}
|
||||
}
|
||||
}, [nextVideo]);
|
||||
|
|
|
|||
Loading…
Reference in a new issue