mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-11 21:27:05 +00:00
fix(Player): do not show next video popup if bingeWatching is not enabled
This commit is contained in:
parent
796ec387aa
commit
e8f3291c34
1 changed files with 1 additions and 1 deletions
|
|
@ -341,7 +341,7 @@ const Player = ({ urlParams, queryParams }) => {
|
|||
}
|
||||
}, [videoState.paused]);
|
||||
React.useEffect(() => {
|
||||
if (!nextVideoPopupDismissed.current) {
|
||||
if (!!settings.bingeWatching && !nextVideoPopupDismissed.current) {
|
||||
if (videoState.time !== null && videoState.duration !== null && videoState.time < videoState.duration && (videoState.duration - videoState.time) <= (35 * 1000)) {
|
||||
openNextVideoPopup();
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue