mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-21 11:42:05 +00:00
chore(Player): add logs
This commit is contained in:
parent
b4c0ab551e
commit
365294946a
1 changed files with 2 additions and 0 deletions
|
|
@ -114,6 +114,8 @@ const Player = ({ urlParams, queryParams }) => {
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
const onEnded = React.useCallback(() => {
|
const onEnded = React.useCallback(() => {
|
||||||
|
// here we need to explicitly check for isNavigating.current
|
||||||
|
// because the ended event can be calleb multiple times by MPV inside Shell
|
||||||
if (isNavigating.current) {
|
if (isNavigating.current) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue