1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

small fixes to cleanup no-nested-ternary

This commit is contained in:
Ryan Hartzell 2022-05-16 12:23:22 -07:00
parent d895a4fc6a
commit f58d7b0beb
3 changed files with 10 additions and 12 deletions

View file

@ -387,7 +387,7 @@ import browser from './browser';
}
/* eslint-disable compat/compat */
let maxVideoWidth = (browser.xboxOne && window.screen) ? window.screen.width : null;
let maxVideoWidth = browser.xboxOne ? window.screen?.width : null;
/* eslint-enable compat/compat */
if (options.maxVideoWidth) {