This commit is contained in:
Peter Maquiran
2023-01-12 15:27:09 +01:00
parent 58f9e7eacd
commit 9493179efd
82 changed files with 702 additions and 557 deletions
+5 -3
View File
@@ -202,7 +202,6 @@ export class ProfilePage implements OnInit {
console.log(this.notificationdata)
console.log(this.notificationdata)
//this.storageservice.remove("Notifications")
this.storageservice.store("Notifications", this.notificationdata).then((store) => {
console.log(store)
this.storageservice.get("Notifications").then((value) => {
@@ -220,12 +219,15 @@ export class ProfilePage implements OnInit {
this.logoutOut == false
setTimeout(() => {
// alert('logout')
const pathBeforeGoOut = window.location.pathname
this.router.navigateByUrl('/auth', { replaceUrl: true });
setTimeout(() => {
if(this.logoutOut == false) {
if(this.logoutOut == false || pathBeforeGoOut == window.location.pathname) {
window.location.pathname = '/auth'
} else {
console.log('refresh')
}
}, 500)