mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-11 21:27:05 +00:00
refactor(Player): remove player.libraryItem from onEnded callback deps
This commit is contained in:
parent
44944ce3d0
commit
76e3944fb9
1 changed files with 1 additions and 1 deletions
|
|
@ -113,7 +113,7 @@ const Player = ({ urlParams, queryParams }) => {
|
|||
} else {
|
||||
window.history.back();
|
||||
}
|
||||
}, [player.libraryItem, player.nextVideo, onPlayNextVideoRequested]);
|
||||
}, [player.nextVideo, onPlayNextVideoRequested]);
|
||||
const onError = React.useCallback((error) => {
|
||||
console.error('Player', error);
|
||||
if (error.critical) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue