restore window resize listener

This commit is contained in:
Mononaut
2023-08-24 17:25:27 +09:00
parent d1f7026804
commit 20fff97804
2 changed files with 2 additions and 1 deletions

View File

@@ -194,6 +194,7 @@ export class StartComponent implements OnInit, OnDestroy, DoCheck {
}, 300);
}
@HostListener('window:resize', ['$event'])
onResize(): void {
this.chainWidth = window.innerWidth;
this.isMobile = this.chainWidth <= 767.98;