Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
get actionbarMode(): ActionbarMode {
const media = this.mediaService.media$.value;
const orientation = this.mediaService.orientation$.value;
if (media === Media.Desktop && orientation === MediaOrientation.Landscape) {
return ActionbarMode.Dock;
}
return ActionbarMode.Overlay;
}
isLandscape(): boolean {
return this.mediaService.getOrientation() === MediaOrientation.Landscape;
}