restore window resize listener
This commit is contained in:
2 files changed
+2
-1
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user