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

@ -22,7 +22,7 @@
// text/html parsing is natively supported
return;
}
} catch (ex) { /* noop */ }
} catch { /* noop */ }
DOMParserPrototype.parseFromString = function (markup, type) {
if (/^\s*text\/html\s*(?:;|$)/i.test(type)) {

View file

@ -8,7 +8,7 @@
try {
new window.KeyboardEvent('event', { bubbles: true, cancelable: true });
} catch (e) {
} catch {
// We can't use `KeyboardEvent` in old WebKit because `initKeyboardEvent`
// doesn't seem to populate some properties (`keyCode`, `which`) that
// are read-only.

View file

@ -13,7 +13,7 @@
if (window.Headers) {
try {
new window.Headers(undefined);
} catch (_) {
} catch {
console.debug('patch \'Headers\' to accept \'undefined\'');
const _Headers = window.Headers;