[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-taler-ops-www] branch master updated: remove ua suffix from fns
From: |
gnunet |
Subject: |
[taler-taler-ops-www] branch master updated: remove ua suffix from fns |
Date: |
Sun, 31 Mar 2024 16:24:43 +0200 |
This is an automated email from the git hooks/post-receive script.
nora-grothoff pushed a commit to branch master
in repository taler-ops-www.
The following commit(s) were added to refs/heads/master by this push:
new f68a64b remove ua suffix from fns
f68a64b is described below
commit f68a64bc013e8a8001afb412c632bf74c4c95863
Author: Nullptrderef <nullptrderef@proton.me>
AuthorDate: Sun Mar 31 16:24:39 2024 +0200
remove ua suffix from fns
---
static/js/vendored/ua.ts | 34 +++++++++++++++++-----------------
1 file changed, 17 insertions(+), 17 deletions(-)
diff --git a/static/js/vendored/ua.ts b/static/js/vendored/ua.ts
index b74cabd..f743110 100644
--- a/static/js/vendored/ua.ts
+++ b/static/js/vendored/ua.ts
@@ -44,13 +44,13 @@ export default class Platform {
this.userAgent = userAgent;
switch (true) {
- case this.isTabletUA():
+ case this.isTablet():
this.device = Device.Tablet;
break;
- case this.isMobileUA():
+ case this.isMobile():
this.device = Device.Mobile;
break;
- case this.isDesktopUA():
+ case this.isDesktop():
this.device = Device.Desktop;
break;
default:
@@ -58,19 +58,19 @@ export default class Platform {
break;
}
switch (true) {
- case this.isAndroidUA():
+ case this.isAndroid():
this.os = OS.Android;
break;
- case this.isIOSUA():
+ case this.isIOS():
this.os = OS.iOS;
break;
- case this.isLinuxUA():
+ case this.isLinux():
this.os = OS.Linux;
break;
- case this.isMacOSUA():
+ case this.isMacOS():
this.os = OS.MacOS;
break;
- case this.isWin32UA():
+ case this.isWin32():
this.os = OS.Win32;
break;
default:
@@ -122,37 +122,37 @@ export default class Platform {
}
/** Checks if the user is on desktop (true if not mobile and not tablet) */
- public isDesktopUA(): boolean {
- return !this.isMobileUA() && !this.isTabletUA();
+ public isDesktop(): boolean {
+ return !this.isMobile() && !this.isTablet();
}
/** Checks if the user is on a tablet or not */
- public isTabletUA(): boolean {
+ public isTablet(): boolean {
return /tablet|ipad/i.test(this.userAgent);
}
/** Checks if the user is on a list of known phones */
- public isMobileUA(): boolean {
+ public isMobile(): boolean {
return /mobile|iphone|ipod|android|windows *phone/i.test(this.userAgent);
}
/** Checks if the user is on android */
- public isAndroidUA(): boolean {
+ public isAndroid(): boolean {
return /android/i.test(this.userAgent);
}
/** Checks if the user is on iOS */
- public isIOSUA(): boolean {
+ public isIOS(): boolean {
return /ipad|iphone|ipod/i.test(this.userAgent);
}
/** Checks if the user is on Linux */
- public isLinuxUA(): boolean {
+ public isLinux(): boolean {
return /linux/i.test(this.userAgent);
}
/** Checks if the user is on Macos/MacOS */
- public isMacOSUA(): boolean {
+ public isMacOS(): boolean {
return /macintosh|os *x/i.test(this.userAgent);
}
@@ -160,7 +160,7 @@ export default class Platform {
* Checks if the user is on a Windows User-Agent
* Note: Name is misleading; Windows refers to itself as Win32 on x64 aswell.
*/
- public isWin32UA(): boolean {
+ public isWin32(): boolean {
return /windows|win64|win32/i.test(this.userAgent);
}
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-taler-ops-www] branch master updated: remove ua suffix from fns,
gnunet <=