mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fix lint errors
This commit is contained in:
parent
7d9acf30b6
commit
4730a30c3d
29 changed files with 53 additions and 23 deletions
|
@ -11,6 +11,7 @@
|
|||
const realPlay = HTMLMediaElementPrototype.play;
|
||||
|
||||
HTMLMediaElementPrototype.play = function () {
|
||||
// eslint-disable-next-line sonarjs/no-try-promise
|
||||
try {
|
||||
const promise = realPlay.apply(this, arguments);
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@ function type(value) {
|
|||
}
|
||||
|
||||
if (typeof value === 'object' || typeof value === 'function') {
|
||||
// eslint-disable-next-line sonarjs/prefer-regexp-exec
|
||||
return Object.prototype.toString.call(value).match(/\s([a-z]+)/i)[1].toLowerCase() || 'object';
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue