mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-08-06 09:08:51 +00:00
Merge pull request #1199 from Stremio/fix/statistics-menu-handler
Some checks are pending
Build / build (push) Waiting to run
Some checks are pending
Build / build (push) Waiting to run
Player: Fix statistics menu shortcut handler
This commit is contained in:
commit
5bc74a9da4
1 changed files with 1 additions and 1 deletions
|
|
@ -735,7 +735,7 @@ const Player = ({ urlParams, queryParams }) => {
|
|||
onShortcut('statisticsMenu', () => {
|
||||
closeMenus();
|
||||
const stream = player.selected?.stream;
|
||||
if (streamingServer?.statistics?.type !== 'Err' && typeof stream === 'string' && typeof stream === 'number') {
|
||||
if (streamingServer?.statistics?.type !== 'Err' && typeof stream?.infoHash === 'string' && typeof stream?.fileIdx === 'number') {
|
||||
toggleStatisticsMenu();
|
||||
}
|
||||
}, [player.selected, streamingServer.statistics, toggleStatisticsMenu]);
|
||||
|
|
|
|||
Loading…
Reference in a new issue