From e8f3291c345fe256ec2b3e5213323afd09189d92 Mon Sep 17 00:00:00 2001 From: Tim Date: Mon, 28 Nov 2022 11:43:26 +0100 Subject: [PATCH] fix(Player): do not show next video popup if bingeWatching is not enabled --- src/routes/Player/Player.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/Player/Player.js b/src/routes/Player/Player.js index 711970aa4..90049161c 100644 --- a/src/routes/Player/Player.js +++ b/src/routes/Player/Player.js @@ -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 {