Fix inconsistent naming formats
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user