mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-05 08:29:49 +00:00
test(player): use replace instead of href
This commit is contained in:
parent
5b56c58e5b
commit
6bfe079030
1 changed files with 1 additions and 5 deletions
|
|
@ -219,7 +219,7 @@ const Player = ({ urlParams, queryParams }) => {
|
|||
|
||||
const deepLinks = player.nextVideo.deepLinks;
|
||||
if (deepLinks.metaDetailsStreams && deepLinks.player) {
|
||||
window.location.href = deepLinks.player;
|
||||
window.location.replace(deepLinks.player);
|
||||
} else {
|
||||
window.location.replace(deepLinks.player ?? deepLinks.metaDetailsStreams);
|
||||
}
|
||||
|
|
@ -620,11 +620,7 @@ const Player = ({ urlParams, queryParams }) => {
|
|||
video.events.off('implementationChanged', onImplementationChanged);
|
||||
};
|
||||
}, [
|
||||
onError,
|
||||
onEnded,
|
||||
onSubtitlesTrackLoaded,
|
||||
onExtraSubtitlesTrackLoaded,
|
||||
onExtraSubtitlesTrackAdded,
|
||||
onImplementationChanged
|
||||
]);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue