From 82dd5b8b0875fb4898440602c98f0a24ecd1053f Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Sat, 14 Apr 2018 09:39:47 -0400 Subject: [PATCH] add timeout to swal alerts --- jslib | 2 +- src/popup/app.component.ts | 1 + src/services/browserPlatformUtils.service.ts | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/jslib b/jslib index 5608f11925..e883dfdaac 160000 --- a/jslib +++ b/jslib @@ -1 +1 @@ -Subproject commit 5608f119252ca29ddae8fe98599efd27f7922a2e +Subproject commit e883dfdaac6b475d032bac9be6aca7cd18d70861 diff --git a/src/popup/app.component.ts b/src/popup/app.component.ts index b788177a1c..7ae6ff0359 100644 --- a/src/popup/app.component.ts +++ b/src/popup/app.component.ts @@ -181,6 +181,7 @@ export class AppComponent implements OnInit { const confirmed = await swal({ content: { element: contentDiv }, buttons: buttons, + timer: 300000, // 5 minute timeout }); this.messagingService.send('showDialogResolve', { diff --git a/src/services/browserPlatformUtils.service.ts b/src/services/browserPlatformUtils.service.ts index e0587f93a0..e22e1d9f6a 100644 --- a/src/services/browserPlatformUtils.service.ts +++ b/src/services/browserPlatformUtils.service.ts @@ -18,7 +18,7 @@ const AnalyticsIds = { [DeviceType.Safari]: 'UA-81915606-16', }; -const DialogPromiseExpiration = 3600000; // 1 hour +const DialogPromiseExpiration = 600000; // 10 minutes export default class BrowserPlatformUtilsService implements PlatformUtilsService { static getDomain(uriString: string): string {