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

Fix unused var and pseudorandom warnings

This commit is contained in:
Bill Thornton 2025-03-27 12:15:56 -04:00
parent 9077782c17
commit ad2472e90e
19 changed files with 31 additions and 30 deletions

View file

@ -211,7 +211,7 @@ export function getDisplayDateTime(date) {
if (typeof date === 'string') {
try {
date = parseISO8601Date(date, true);
} catch (err) {
} catch {
return date;
}
}
@ -227,7 +227,7 @@ export function getDisplayTime(date) {
if (typeof date === 'string') {
try {
date = parseISO8601Date(date, true);
} catch (err) {
} catch {
return date;
}
}

View file

@ -64,7 +64,7 @@ let hasFieldKey = false;
try {
hasFieldKey = 'key' in new KeyboardEvent('keydown');
} catch (e) {
console.error("error checking 'key' field");
console.error("error checking 'key' field", e);
}
if (!hasFieldKey) {

View file

@ -31,7 +31,7 @@ function getScreensaverPlugin(isLoggedIn) {
let option;
try {
option = userSettings.get('screensaver', false);
} catch (err) {
} catch {
option = isLoggedIn ? 'backdropscreensaver' : 'logoscreensaver';
}