mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-05-07 21:00:21 +00:00
refactor(Player): reset global var
This commit is contained in:
parent
440713ee68
commit
28578e1dea
1 changed files with 2 additions and 0 deletions
|
|
@ -404,6 +404,8 @@ const Player = ({ urlParams, queryParams }) => {
|
|||
// we explicitly set it to a global variable so we can access it in the onEnded function
|
||||
// this is not a good solution but it works for now
|
||||
window.playerNextVideo = player.nextVideo;
|
||||
} else {
|
||||
window.playerNextVideo = null;
|
||||
}
|
||||
}, [player.nextVideo, video.state.time, video.state.duration]);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue