Merge pull request #141 from Karaka-Management/develop

fix comment
This commit is contained in:
Dennis Eichhorn 2024-04-25 02:25:26 +02:00 committed by GitHub
commit 3929fd898c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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];
} }