revert: chore lint 1

This commit is contained in:
Timothy Z. 2025-05-02 19:48:04 +03:00
parent ebb15463b4
commit 17312f64fd

View file

@ -123,13 +123,11 @@ const Player = ({ urlParams, queryParams }) => {
ended(); ended();
if (player.nextVideo !== null) { if (player.nextVideo !== null) {
nextVideo(); onNextVideoRequested();
const deepLinks = player.nextVideo.deepLinks;
handleNextVideoNavigation(deepLinks);
} else { } else {
window.history.back(); window.history.back();
} }
}, [player.nextVideo, nextVideo, handleNextVideoNavigation]); }, [player.nextVideo, onNextVideoRequested]);
const onError = React.useCallback((error) => { const onError = React.useCallback((error) => {
console.error('Player', error); console.error('Player', error);