mirror of
https://github.com/akveo/ngx-admin.git
synced 2026-03-01 11:20:16 +01:00
fix(docs): popover and themes page
This commit is contained in:
parent
7a1c74cb18
commit
413cbdbd01
9 changed files with 39 additions and 22 deletions
|
|
@ -20,6 +20,10 @@ export class CurrentThemeService implements OnDestroy {
|
|||
localStorage.setItem('theme', JSON.stringify(currentTheme));
|
||||
}
|
||||
|
||||
getCurrentTheme(): string {
|
||||
return JSON.parse(localStorage.theme).themeName;
|
||||
}
|
||||
|
||||
calculateExpiration(iat: number): number {
|
||||
const currentDate = new Date().getTime();
|
||||
const timestamp = iat || Math.floor(Date.now() / 1000);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue