1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-19 09:43:23 +00:00
Files
browser/src/app/layouts/frontend-layout.component.ts
2019-01-29 12:52:11 -05:00

29 lines
750 B
TypeScript

import {
Component,
OnDestroy,
OnInit,
} from '@angular/core';
import { PlatformUtilsService } from 'jslib/abstractions/platformUtils.service';
@Component({
selector: 'app-frontend-layout',
templateUrl: 'frontend-layout.component.html',
})
export class FrontendLayoutComponent implements OnInit, OnDestroy {
version: string;
year: string = '2015';
constructor(private platformUtilsService: PlatformUtilsService) { }
ngOnInit() {
this.year = new Date().getFullYear().toString();
this.version = this.platformUtilsService.getApplicationVersion();
document.body.classList.add('layout_frontend');
}
ngOnDestroy() {
document.body.classList.remove('layout_frontend');
}
}