mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-17 23:13:04 +00:00
added test for window resize to app.component.spec.ts
This commit is contained in:
@@ -52,7 +52,7 @@ export class AppComponent implements OnDestroy, OnInit {
|
||||
@HostListener('window:resize', ['$event'])
|
||||
private onResize(event): void {
|
||||
this.store.dispatch(
|
||||
new HostWindowResizeAction(event.target.target.innerWidth, event.target.innerHeight)
|
||||
new HostWindowResizeAction(event.target.innerWidth, event.target.innerHeight)
|
||||
);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user