mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 13:02:56 +00:00
improve chat
This commit is contained in:
@@ -102,7 +102,7 @@ export class HomePage implements OnInit {
|
||||
|
||||
window['inactivity/function'] = () => {
|
||||
|
||||
if (window.location.pathname != '/inactivity') {
|
||||
if (window.location.pathname != '/inactivity' && window.location.pathname != '/') {
|
||||
|
||||
document.querySelectorAll('ion-modal').forEach((e: any) => e.remove());
|
||||
document.querySelectorAll('.popover-viewport').forEach((e: any) => e.remove());
|
||||
@@ -112,9 +112,11 @@ export class HomePage implements OnInit {
|
||||
SessionStore.setUrlBeforeInactivity(pathname)
|
||||
|
||||
if (this.platform.is('mobileweb')) {
|
||||
this.router.navigate(['/inactivity']);
|
||||
// this.router.navigate(['/inactivity']);
|
||||
window.location.pathname = '/inactivity'
|
||||
} else {
|
||||
this.router.navigate(['/']);
|
||||
// this.router.navigate(['/']);
|
||||
window.location.pathname = '/'
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user