Skip to content
Snippets Groups Projects
Commit d1019735 authored by Hamza HRAMCHI's avatar Hamza HRAMCHI
Browse files

FIX #23981 TIME 0:05 revert code

parent 408f7463
No related branches found
No related tags found
No related merge requests found
import { Component, HostListener, OnInit, ViewEncapsulation } from '@angular/core';
import { Component, ViewEncapsulation } from '@angular/core';
import { CookieService } from 'ngx-cookie-service';
import { SignaturesContentService } from './service/signatures.service';
import { HttpClient } from '@angular/common/http';
......@@ -19,7 +19,7 @@ import { Platform } from '@ionic/angular';
styleUrls: ['app.component.scss']
})
export class AppComponent implements OnInit {
export class AppComponent {
isPortrait: boolean;
debugMode: boolean;
showLeftContent: boolean = false;
......@@ -54,34 +54,6 @@ export class AppComponent implements OnInit {
}
// The event listens for window resize and checks if the device resolution has changed
@HostListener('window:resize', ['$event'])
onResize() {
if (window.matchMedia('(resolution: ' + window.devicePixelRatio + 'dppx)').matches) {
if (window.devicePixelRatio >= 1.25) {
this.signaturesService.mobileMode = true;
setTimeout(() => {
$('.right-menu-responsive').css('--max-width', 'none');
}, 0);
} else {
this.signaturesService.mobileMode = false;
}
}
}
ngOnInit(): void {
if (window.matchMedia('(resolution: ' + window.devicePixelRatio + 'dppx)').matches) {
if (window.devicePixelRatio >= 1.25) {
this.signaturesService.mobileMode = true;
setTimeout(() => {
$('.right-menu-responsive').css('--max-width', 'none');
}, 0);
} else {
this.signaturesService.mobileMode = false;
}
}
}
allowedRoute() {
const route = this.router.url.split('?')[0];
const allowedRoutes: string[] = ['/', '/login', '/forgot-password', '/update-password', '/password-modification'];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment