fix: fix stupid ahh bug where u get logged out when doing fucking anything stupid fucking http interceptor
This commit is contained in:
parent
3b95725d88
commit
29a53ea781
4 changed files with 15 additions and 15 deletions
|
@ -1,4 +1,4 @@
|
|||
import { ChangeDetectionStrategy, Component } from '@angular/core';
|
||||
import { ChangeDetectionStrategy, Component, OnInit } from '@angular/core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { RouterOutlet } from '@angular/router';
|
||||
import { FooterComponent } from './shared/components/footer/footer.component';
|
||||
|
@ -12,4 +12,10 @@ import { FooterComponent } from './shared/components/footer/footer.component';
|
|||
styleUrl: './app.component.css',
|
||||
changeDetection: ChangeDetectionStrategy.OnPush,
|
||||
})
|
||||
export class AppComponent {}
|
||||
export class AppComponent implements OnInit {
|
||||
ngOnInit() {
|
||||
const count = +(localStorage.getItem('reloadCount') ?? 0);
|
||||
localStorage.setItem('reloadCount', (count + 1).toString());
|
||||
console.log('Reload count from localStorage:', count + 1);
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue