@osovitny/anatoly 3.19.21 → 3.19.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3457,7 +3457,7 @@ class BrowserService {
|
|
|
3457
3457
|
init() {
|
|
3458
3458
|
// Listen to Angular CDK breakpoints for screen size changes
|
|
3459
3459
|
this.breakpointObserver
|
|
3460
|
-
.observe([Breakpoints.Handset, Breakpoints.Tablet
|
|
3460
|
+
.observe([Breakpoints.Handset, Breakpoints.Tablet])
|
|
3461
3461
|
.subscribe(result => {
|
|
3462
3462
|
const breakpoints = result.breakpoints;
|
|
3463
3463
|
this.isMobileScreen = breakpoints[Breakpoints.Handset] || false;
|
|
@@ -3490,7 +3490,7 @@ class BrowserService {
|
|
|
3490
3490
|
"motorola|moto|" + // Motorola
|
|
3491
3491
|
"nokia|infinix|tecno", // Other brands
|
|
3492
3492
|
"i");
|
|
3493
|
-
return mobileRegex.test(this.userAgent)
|
|
3493
|
+
return mobileRegex.test(this.userAgent);
|
|
3494
3494
|
}
|
|
3495
3495
|
isTablet() {
|
|
3496
3496
|
if (!this.platform?.isBrowser)
|
|
@@ -3508,7 +3508,7 @@ class BrowserService {
|
|
|
3508
3508
|
"mrx-al09|" + // Huawei MatePad Pro
|
|
3509
3509
|
"x926b", // Galaxy Tab S10 Ultra
|
|
3510
3510
|
"i");
|
|
3511
|
-
return tabletRegex.test(this.userAgent)
|
|
3511
|
+
return tabletRegex.test(this.userAgent);
|
|
3512
3512
|
}
|
|
3513
3513
|
isMobileOrTablet() {
|
|
3514
3514
|
return this.isMobile() || this.isTablet();
|