mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-11 21:27:05 +00:00
redundant checks for the type of stream removed
This commit is contained in:
parent
cdd1eac725
commit
63ac8b1453
1 changed files with 2 additions and 2 deletions
|
|
@ -264,7 +264,7 @@ const Player = ({ urlParams }) => {
|
|||
}
|
||||
}, [videoState.subtitlesTracks]);
|
||||
React.useEffect(() => {
|
||||
if (typeof stream !== 'object' || stream === null) {
|
||||
if (stream === null) {
|
||||
closeInfoMenu();
|
||||
}
|
||||
}, [stream]);
|
||||
|
|
@ -326,7 +326,7 @@ const Player = ({ urlParams }) => {
|
|||
}
|
||||
case 'KeyM': {
|
||||
closeSubtitlesMenu();
|
||||
if (typeof stream === 'object' && stream !== null) {
|
||||
if (stream !== null) {
|
||||
toggleInfoMenu();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue