@osovitny/anatoly 3.19.22 → 3.19.24
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.
|
@@ -3450,8 +3450,6 @@ class BrowserService {
|
|
|
3450
3450
|
// Reactive update stream
|
|
3451
3451
|
this._updated = new BehaviorSubject(null);
|
|
3452
3452
|
this.updated$ = this._updated.asObservable();
|
|
3453
|
-
// Cached lowercase UserAgent string
|
|
3454
|
-
this.userAgent = navigator.userAgent.toLowerCase();
|
|
3455
3453
|
this.init();
|
|
3456
3454
|
}
|
|
3457
3455
|
init() {
|
|
@@ -3490,7 +3488,7 @@ class BrowserService {
|
|
|
3490
3488
|
"motorola|moto|" + // Motorola
|
|
3491
3489
|
"nokia|infinix|tecno", // Other brands
|
|
3492
3490
|
"i");
|
|
3493
|
-
return mobileRegex.test(this.userAgent)
|
|
3491
|
+
return mobileRegex.test(this.userAgent);
|
|
3494
3492
|
}
|
|
3495
3493
|
isTablet() {
|
|
3496
3494
|
if (!this.platform?.isBrowser)
|
|
@@ -3508,7 +3506,7 @@ class BrowserService {
|
|
|
3508
3506
|
"mrx-al09|" + // Huawei MatePad Pro
|
|
3509
3507
|
"x926b", // Galaxy Tab S10 Ultra
|
|
3510
3508
|
"i");
|
|
3511
|
-
return tabletRegex.test(this.userAgent)
|
|
3509
|
+
return tabletRegex.test(this.userAgent);
|
|
3512
3510
|
}
|
|
3513
3511
|
isMobileOrTablet() {
|
|
3514
3512
|
return this.isMobile() || this.isTablet();
|
|
@@ -3527,6 +3525,9 @@ class BrowserService {
|
|
|
3527
3525
|
}
|
|
3528
3526
|
return !this.isMobileOrTablet();
|
|
3529
3527
|
}
|
|
3528
|
+
get userAgent() {
|
|
3529
|
+
return navigator.userAgent.toLowerCase();
|
|
3530
|
+
}
|
|
3530
3531
|
static { this.ɵfac = function BrowserService_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || BrowserService)(i0.ɵɵinject(i1$5.Platform), i0.ɵɵinject(i2.BreakpointObserver)); }; }
|
|
3531
3532
|
static { this.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: BrowserService, factory: BrowserService.ɵfac, providedIn: 'root' }); }
|
|
3532
3533
|
}
|