mirror of
https://github.com/akveo/ngx-admin.git
synced 2026-02-16 13:08:07 +01:00
fix(docs): popover and themes page
This commit is contained in:
parent
2a921c2a0f
commit
75f27e2cfc
10 changed files with 42 additions and 25 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