mirror of
https://github.com/Karaka-Management/jsOMS.git
synced 2026-01-11 01:48:40 +00:00
fix comment
This commit is contained in:
parent
1d30b00dd6
commit
94ce63125f
|
|
@ -9,6 +9,7 @@ import { OSType } from './OSType.js';
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
|
/* global navigator */
|
||||||
export class SystemUtils
|
export class SystemUtils
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
|
@ -25,7 +26,6 @@ export class SystemUtils
|
||||||
}
|
}
|
||||||
|
|
||||||
/* global InstallTrigger */
|
/* global InstallTrigger */
|
||||||
/* global navigator */
|
|
||||||
/* global window */
|
/* global window */
|
||||||
if ((!!window.opr && !!opr.addons) || !!window.opera || navigator.userAgent.indexOf(' OPR/') >= 0) {
|
if ((!!window.opr && !!opr.addons) || !!window.opera || navigator.userAgent.indexOf(' OPR/') >= 0) {
|
||||||
return BrowserType.OPERA;
|
return BrowserType.OPERA;
|
||||||
|
|
@ -64,7 +64,6 @@ export class SystemUtils
|
||||||
|
|
||||||
for (const os in OSType) {
|
for (const os in OSType) {
|
||||||
if (Object.prototype.hasOwnProperty.call(OSType, os)) {
|
if (Object.prototype.hasOwnProperty.call(OSType, os)) {
|
||||||
/* global navigator */
|
|
||||||
if (navigator.userAgent.toLowerCase().indexOf(OSType[os]) !== -1) {
|
if (navigator.userAgent.toLowerCase().indexOf(OSType[os]) !== -1) {
|
||||||
return OSType[os];
|
return OSType[os];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user