mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-21 11:42:05 +00:00
chore(Player): lint
This commit is contained in:
parent
f3a7ef5978
commit
3985c88346
1 changed files with 4 additions and 2 deletions
|
|
@ -123,11 +123,13 @@ const Player = ({ urlParams, queryParams }) => {
|
||||||
|
|
||||||
ended();
|
ended();
|
||||||
if (player.nextVideo !== null) {
|
if (player.nextVideo !== null) {
|
||||||
onNextVideoRequested();
|
nextVideo();
|
||||||
|
const deepLinks = player.nextVideo.deepLinks;
|
||||||
|
handleNextVideoNavigation(deepLinks);
|
||||||
} else {
|
} else {
|
||||||
window.history.back();
|
window.history.back();
|
||||||
}
|
}
|
||||||
}, [player.nextVideo, onNextVideoRequested]);
|
}, [player.nextVideo, nextVideo, handleNextVideoNavigation]);
|
||||||
|
|
||||||
const onError = React.useCallback((error) => {
|
const onError = React.useCallback((error) => {
|
||||||
console.error('Player', error);
|
console.error('Player', error);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue