mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-21 11:42: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]);
|
}, [videoState.subtitlesTracks]);
|
||||||
React.useEffect(() => {
|
React.useEffect(() => {
|
||||||
if (typeof stream !== 'object' || stream === null) {
|
if (stream === null) {
|
||||||
closeInfoMenu();
|
closeInfoMenu();
|
||||||
}
|
}
|
||||||
}, [stream]);
|
}, [stream]);
|
||||||
|
|
@ -326,7 +326,7 @@ const Player = ({ urlParams }) => {
|
||||||
}
|
}
|
||||||
case 'KeyM': {
|
case 'KeyM': {
|
||||||
closeSubtitlesMenu();
|
closeSubtitlesMenu();
|
||||||
if (typeof stream === 'object' && stream !== null) {
|
if (stream !== null) {
|
||||||
toggleInfoMenu();
|
toggleInfoMenu();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue