mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-21 15:52:02 +00:00
fix: player - popup for next video should show up on disabled binge_watching
Signed-off-by: Lachezar Lechev <lachezar@ambire.com>
This commit is contained in:
parent
2f566f8626
commit
1b15f0b5f1
1 changed files with 1 additions and 1 deletions
|
|
@ -434,7 +434,7 @@ const Player = ({ urlParams, queryParams }) => {
|
||||||
}, [video.state.videoParams]);
|
}, [video.state.videoParams]);
|
||||||
|
|
||||||
React.useEffect(() => {
|
React.useEffect(() => {
|
||||||
if (!!settings.bingeWatching && player.nextVideo !== null && !nextVideoPopupDismissed.current) {
|
if (player.nextVideo !== null && !nextVideoPopupDismissed.current) {
|
||||||
if (video.state.time !== null && video.state.duration !== null && video.state.time < video.state.duration && (video.state.duration - video.state.time) <= settings.nextVideoNotificationDuration) {
|
if (video.state.time !== null && video.state.duration !== null && video.state.time < video.state.duration && (video.state.duration - video.state.time) <= settings.nextVideoNotificationDuration) {
|
||||||
openNextVideoPopup();
|
openNextVideoPopup();
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue