Skip to content

Commit

Permalink
Fix HostListener on Build
Browse files Browse the repository at this point in the history
  • Loading branch information
dmytakis committed Jun 23, 2020
1 parent 8b97e39 commit b93dad1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/app/member-dashboard/member-dashboard.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ export class MemberDashboardComponent implements OnInit, OnDestroy {
}
}

@HostListener('window:popstate', ['$event'])
@HostListener('window:popstate')
dismissModal() {
if (this.modalService.hasOpenModals()) {
this.modalService.dismissAll();
Expand Down
2 changes: 1 addition & 1 deletion src/app/member-explore/member-explore.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export class MemberExploreComponent implements OnInit, OnDestroy {
}
}

@HostListener('window:popstate', ['$event'])
@HostListener('window:popstate')
dismissModal() {
if (this.modalService.hasOpenModals()) {
this.modalService.dismissAll();
Expand Down
2 changes: 1 addition & 1 deletion src/app/member-support/member-support.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export class MemberSupportComponent implements OnInit, OnDestroy {
}
}

@HostListener('window:popstate', ['$event'])
@HostListener('window:popstate')
dismissModal() {
if (this.modalService.hasOpenModals()) {
this.modalService.dismissAll();
Expand Down
2 changes: 1 addition & 1 deletion src/app/scanner/scanner.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ export class ScannerComponent implements OnInit, OnDestroy {
}
}

@HostListener('window:popstate', ['$event'])
@HostListener('window:popstate')
dismissModal() {
this.controlModalState(false);
this.modalService.dismissAll();
Expand Down

0 comments on commit b93dad1

Please sign in to comment.