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:
parent
9077782c17
commit
ad2472e90e
19 changed files with 31 additions and 30 deletions
|
@ -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)) {
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue