fix(docs): popover and themes page

This commit is contained in:
Alex 2020-04-01 14:46:32 +03:00
parent 2a921c2a0f
commit 75f27e2cfc
10 changed files with 42 additions and 25 deletions

View file

@ -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);