diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 1bb2bd3..006f280 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -90,11 +90,7 @@ export class AppComponent implements OnInit { } checkViewportSize(): void { - if (this.window.innerWidth < 1000 || this.window.innerHeight < 850) { - this.viewportTooSmall.set(true); - } else { - this.viewportTooSmall.set(false); - } + this.viewportTooSmall.set(this.window.innerWidth < 1000 || this.window.innerHeight < 850); } /** The color to use for the icons in the header. */