nextVideo changed to video object

This commit is contained in:
nklhrstv 2020-10-28 15:30:11 +02:00
parent 37e9139068
commit 6500ff9149

View file

@ -81,12 +81,12 @@ const Player = ({ urlParams }) => {
}
});
}
if (player.nextVideoDeepLinks !== null) {
if (player.nextVideo !== null) {
window.location.replace(
typeof player.nextVideoDeepLinks.player === 'string' ?
player.nextVideoDeepLinks.player
typeof player.nextVideo.deepLinks.player === 'string' ?
player.nextVideo.deepLinks.player
:
player.nextVideoDeepLinks.metaDetailsStreams
player.nextVideo.deepLinks.metaDetailsStreams
);
} else {
window.history.back();