@osovitny/anatoly 3.19.20 → 3.19.22
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.
|
@@ -3447,7 +3447,6 @@ class BrowserService {
|
|
|
3447
3447
|
// Breakpoint status flags
|
|
3448
3448
|
this.isMobileScreen = false;
|
|
3449
3449
|
this.isTabletScreen = false;
|
|
3450
|
-
this.isDesktopScreen = false;
|
|
3451
3450
|
// Reactive update stream
|
|
3452
3451
|
this._updated = new BehaviorSubject(null);
|
|
3453
3452
|
this.updated$ = this._updated.asObservable();
|
|
@@ -3458,12 +3457,11 @@ class BrowserService {
|
|
|
3458
3457
|
init() {
|
|
3459
3458
|
// Listen to Angular CDK breakpoints for screen size changes
|
|
3460
3459
|
this.breakpointObserver
|
|
3461
|
-
.observe([Breakpoints.Handset, Breakpoints.Tablet
|
|
3460
|
+
.observe([Breakpoints.Handset, Breakpoints.Tablet])
|
|
3462
3461
|
.subscribe(result => {
|
|
3463
3462
|
const breakpoints = result.breakpoints;
|
|
3464
3463
|
this.isMobileScreen = breakpoints[Breakpoints.Handset] || false;
|
|
3465
3464
|
this.isTabletScreen = breakpoints[Breakpoints.Tablet] || false;
|
|
3466
|
-
this.isDesktopScreen = breakpoints[Breakpoints.Web] || false;
|
|
3467
3465
|
this.fireUpdated();
|
|
3468
3466
|
});
|
|
3469
3467
|
}
|
|
@@ -3524,7 +3522,10 @@ class BrowserService {
|
|
|
3524
3522
|
return isMac && !isIPhone && !isIPad;
|
|
3525
3523
|
}
|
|
3526
3524
|
isDesktop() {
|
|
3527
|
-
|
|
3525
|
+
if (this.isDesktopMacOS()) {
|
|
3526
|
+
return true;
|
|
3527
|
+
}
|
|
3528
|
+
return !this.isMobileOrTablet();
|
|
3528
3529
|
}
|
|
3529
3530
|
static { this.ɵfac = function BrowserService_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || BrowserService)(i0.ɵɵinject(i1$5.Platform), i0.ɵɵinject(i2.BreakpointObserver)); }; }
|
|
3530
3531
|
static { this.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: BrowserService, factory: BrowserService.ɵfac, providedIn: 'root' }); }
|