From b93b9feee4d872f27e168b6d25f477c188893f1b Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Sat, 9 Jun 2018 14:55:34 -0400 Subject: [PATCH] enable lock timeout --- jslib | 2 +- src/app/app.component.ts | 4 ++-- src/services/webPlatformUtils.service.ts | 4 ++++ 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/jslib b/jslib index 7b05416d556..cd3c2ddff1a 160000 --- a/jslib +++ b/jslib @@ -1 +1 @@ -Subproject commit 7b05416d556c6041e638ec5fcb58a060062cda84 +Subproject commit cd3c2ddff1abd66c6318d981a389685dc82cfc0e diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 599e00d60e5..78de2398d8b 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -90,10 +90,10 @@ export class AppComponent implements OnDestroy, OnInit { this.logOut(!!message.expired); break; case 'lockVault': - //await this.lockService.lock(); + await this.lockService.lock(); break; case 'locked': - //this.router.navigate(['lock']); + this.router.navigate(['lock']); break; case 'syncStarted': break; diff --git a/src/services/webPlatformUtils.service.ts b/src/services/webPlatformUtils.service.ts index f1f6f0d3b7c..987232fb9d3 100644 --- a/src/services/webPlatformUtils.service.ts +++ b/src/services/webPlatformUtils.service.ts @@ -72,6 +72,10 @@ export class WebPlatformUtilsService implements PlatformUtilsService { return false; } + lockTimeout(): number { + return 15; + } + launchUri(uri: string, options?: any): void { const a = document.createElement('a'); a.href = uri;