mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
improve chat
This commit is contained in:
@@ -59,7 +59,6 @@ export class ProfilePage implements OnInit {
|
||||
|
||||
ngOnInit() {
|
||||
if (this.platform.is('desktop') || this.platform.is('mobileweb')) {
|
||||
// console.log('Notifications not supported')
|
||||
this.getNotificationData();
|
||||
} else {
|
||||
this.getNotificationData();
|
||||
@@ -78,8 +77,6 @@ export class ProfilePage implements OnInit {
|
||||
|
||||
async getNotificationData() {
|
||||
|
||||
console.log('profile',this.storageservice.key("Notifications"))
|
||||
|
||||
const keyExist = await this.storageservice.keyExist("Notifications")
|
||||
|
||||
if(keyExist) {
|
||||
@@ -225,9 +222,8 @@ export class ProfilePage implements OnInit {
|
||||
setTimeout(() => {
|
||||
// alert('logout')
|
||||
this.router.navigateByUrl('/auth', { replaceUrl: true });
|
||||
this.router.navigate(['/auth']);
|
||||
|
||||
setTimeout(() =>{
|
||||
setTimeout(() => {
|
||||
if(this.logoutOut == false) {
|
||||
window.location.pathname = '/auth'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user