From c362fc4677f033ae33c0dd5d5614e5b7af3ada3e Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Thu, 13 Sep 2018 11:28:52 -0400 Subject: [PATCH] Revert "remove swal hack" This reverts commit 2d6b4f121600d04e384154b9d81c23955bd38e51. --- src/services/webPlatformUtils.service.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/services/webPlatformUtils.service.ts b/src/services/webPlatformUtils.service.ts index b6d0df5789..2fcc17df13 100644 --- a/src/services/webPlatformUtils.service.ts +++ b/src/services/webPlatformUtils.service.ts @@ -1,4 +1,5 @@ -import swal from 'sweetalert'; +import * as _swal from 'sweetalert'; +import { SweetAlert } from 'sweetalert/typings/core'; import { DeviceType } from 'jslib/enums/deviceType'; @@ -7,6 +8,9 @@ import { PlatformUtilsService } from 'jslib/abstractions/platformUtils.service'; import { Utils } from 'jslib/misc/utils'; +// Hack due to Angular 5.2 bug +const swal: SweetAlert = _swal as any; + export class WebPlatformUtilsService implements PlatformUtilsService { identityClientId: string = 'web';