diff --git a/src/main/webapp/app/home/home.component.ts b/src/main/webapp/app/home/home.component.ts index 16f736d0..d4844530 100644 --- a/src/main/webapp/app/home/home.component.ts +++ b/src/main/webapp/app/home/home.component.ts @@ -43,6 +43,7 @@ export class HomeComponent implements OnInit, OnDestroy { this.responsiveService.getMobileStatus().subscribe(isMobile => { this.isMobile = isMobile; }) + console.log(this.isMobile) // this.responsiveService.checkWidth(); } diff --git a/src/main/webapp/app/responsive.service.ts b/src/main/webapp/app/responsive.service.ts index 91e77b29..e08147cb 100644 --- a/src/main/webapp/app/responsive.service.ts +++ b/src/main/webapp/app/responsive.service.ts @@ -19,12 +19,13 @@ export class ResponsiveService { // tslint:disable-next-line:typedef getMobileStatus(): Observable { - console.log(this.isMobile) + // console.log(this.isMobile) return this.isMobile.asObservable(); } // tslint:disable-next-line:typedef public checkWidth() { + console.log(window.innerWidth) // tslint:disable-next-line:prefer-const if (window.innerWidth <= 768) { this.screenWidth = 'sm';