1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-12-28 17:27:50 +01:00

[Chore] Bump jslib (#917)

* Bump jslib
This commit is contained in:
Oscar Hinton 2021-04-07 20:42:57 +02:00 committed by GitHub
parent ba3d4a2390
commit 09fba343fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 9 additions and 9 deletions

2
jslib

@ -1 +1 @@
Subproject commit 97ece68dec8f2f94e41a172419039e68d8966253 Subproject commit 78d40d9f18c23a185465d5fca238b258b2848193

View File

@ -15,8 +15,8 @@ export class FooterComponent implements OnInit {
constructor(private platformUtilsService: PlatformUtilsService) { } constructor(private platformUtilsService: PlatformUtilsService) { }
ngOnInit() { async ngOnInit() {
this.year = new Date().getFullYear().toString(); this.year = new Date().getFullYear().toString();
this.version = this.platformUtilsService.getApplicationVersion(); this.version = await this.platformUtilsService.getApplicationVersion();
} }
} }

View File

@ -16,9 +16,9 @@ export class FrontendLayoutComponent implements OnInit, OnDestroy {
constructor(private platformUtilsService: PlatformUtilsService) { } constructor(private platformUtilsService: PlatformUtilsService) { }
ngOnInit() { async ngOnInit() {
this.year = new Date().getFullYear().toString(); this.year = new Date().getFullYear().toString();
this.version = this.platformUtilsService.getApplicationVersion(); this.version = await this.platformUtilsService.getApplicationVersion();
document.body.classList.add('layout_frontend'); document.body.classList.add('layout_frontend');
} }

View File

@ -114,7 +114,7 @@ const cipherService = new CipherService(cryptoService, userService, settingsServ
const folderService = new FolderService(cryptoService, userService, apiService, storageService, const folderService = new FolderService(cryptoService, userService, apiService, storageService,
i18nService, cipherService); i18nService, cipherService);
const collectionService = new CollectionService(cryptoService, userService, storageService, i18nService); const collectionService = new CollectionService(cryptoService, userService, storageService, i18nService);
searchService = new SearchService(cipherService, consoleLogService); searchService = new SearchService(cipherService, consoleLogService, i18nService);
const policyService = new PolicyService(userService, storageService); const policyService = new PolicyService(userService, storageService);
const sendService = new SendService(cryptoService, userService, apiService, fileUploadService, storageService, const sendService = new SendService(cryptoService, userService, apiService, fileUploadService, storageService,
i18nService, cryptoFunctionService); i18nService, cryptoFunctionService);

View File

@ -154,8 +154,8 @@ export class WebPlatformUtilsService implements PlatformUtilsService {
} }
} }
getApplicationVersion(): string { getApplicationVersion(): Promise<string> {
return process.env.APPLICATION_VERSION || '-'; return Promise.resolve(process.env.APPLICATION_VERSION || '-');
} }
supportsWebAuthn(win: Window): boolean { supportsWebAuthn(win: Window): boolean {
@ -286,7 +286,7 @@ export class WebPlatformUtilsService implements PlatformUtilsService {
} }
getDefaultSystemTheme() { getDefaultSystemTheme() {
return null as 'light' | 'dark'; return Promise.resolve(null as 'light' | 'dark');
} }
onDefaultSystemThemeChange() { onDefaultSystemThemeChange() {