mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-21 15:52:02 +00:00
fix(Player): replace history entry
- fix for the navigation
This commit is contained in:
parent
17312f64fd
commit
b51791baa0
1 changed files with 2 additions and 2 deletions
|
|
@ -106,11 +106,11 @@ const Player = ({ urlParams, queryParams }) => {
|
||||||
const handleNextVideoNavigation = React.useCallback((deepLinks) => {
|
const handleNextVideoNavigation = React.useCallback((deepLinks) => {
|
||||||
if (deepLinks.player) {
|
if (deepLinks.player) {
|
||||||
isNavigating.current = true;
|
isNavigating.current = true;
|
||||||
window.location.href = deepLinks.player;
|
window.location.replace(deepLinks.player);
|
||||||
return true;
|
return true;
|
||||||
} else if (deepLinks.metaDetailsStreams) {
|
} else if (deepLinks.metaDetailsStreams) {
|
||||||
isNavigating.current = true;
|
isNavigating.current = true;
|
||||||
window.location.href = deepLinks.metaDetailsStreams;
|
window.location.replace(deepLinks.metaDetailsStreams);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue