mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fix inconsistent naming formats
This commit is contained in:
parent
f9092e0678
commit
fdccb5c915
7 changed files with 41 additions and 39 deletions
|
@ -204,7 +204,7 @@ const uaMatch = function (ua) {
|
|||
|
||||
const versionMatch = /(version)[ /]([\w.]+)/.exec(ua);
|
||||
|
||||
let platform_match = /(ipad)/.exec(ua)
|
||||
let platformMatch = /(ipad)/.exec(ua)
|
||||
|| /(iphone)/.exec(ua)
|
||||
|| /(windows)/.exec(ua)
|
||||
|| /(android)/.exec(ua)
|
||||
|
@ -213,7 +213,7 @@ const uaMatch = function (ua) {
|
|||
let browser = match[1] || '';
|
||||
|
||||
if (browser === 'edge') {
|
||||
platform_match = [''];
|
||||
platformMatch = [''];
|
||||
}
|
||||
|
||||
if (browser === 'opr') {
|
||||
|
@ -236,7 +236,7 @@ const uaMatch = function (ua) {
|
|||
return {
|
||||
browser: browser,
|
||||
version: version,
|
||||
platform: platform_match[0] || '',
|
||||
platform: platformMatch[0] || '',
|
||||
versionMajor: versionMajor
|
||||
};
|
||||
};
|
||||
|
|
|
@ -6,6 +6,8 @@ import globalize from 'lib/globalize';
|
|||
import Dashboard from 'utils/dashboard';
|
||||
import { getParameterByName } from 'utils/url';
|
||||
|
||||
// Disable the naming rules since jstree requires snake_case variables
|
||||
/* eslint-disable @typescript-eslint/naming-convention */
|
||||
function getNode(item, folderState, selected) {
|
||||
const htmlName = getNodeInnerHtml(item);
|
||||
const node = {
|
||||
|
@ -336,4 +338,4 @@ window.MetadataEditor = {
|
|||
getCurrentItemId: getCurrentItemId,
|
||||
setCurrentItemId: setCurrentItemId
|
||||
};
|
||||
|
||||
/* eslint-enable @typescript-eslint/naming-convention */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue