1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-19 17:53:39 +00:00

fix year in frontend footer

This commit is contained in:
Kyle Spearrin
2019-01-29 12:52:11 -05:00
parent 378b4bb8c1
commit 459bc69032
2 changed files with 3 additions and 1 deletions

View File

@@ -12,10 +12,12 @@ import { PlatformUtilsService } from 'jslib/abstractions/platformUtils.service';
})
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');
}