1
0
mirror of https://github.com/bitwarden/browser synced 2024-12-29 11:22:30 +01:00

Revert "remove swal hack again"

This reverts commit f19aa96f3e.
This commit is contained in:
Kyle Spearrin 2018-09-13 11:28:31 -04:00
parent f19aa96f3e
commit f471fe62ea

View File

@ -1,5 +1,6 @@
import * as jq from 'jquery'; import * as jq from 'jquery';
import swal from 'sweetalert'; import * as _swal from 'sweetalert';
import { SweetAlert } from 'sweetalert/typings/core';
import { import {
ToasterConfig, ToasterConfig,
@ -44,6 +45,8 @@ import { ConstantsService } from 'jslib/services/constants.service';
import { RouterService } from './services/router.service'; import { RouterService } from './services/router.service';
const BroadcasterSubscriptionId = 'AppComponent'; const BroadcasterSubscriptionId = 'AppComponent';
// Hack due to Angular 5.2 bug
const swal: SweetAlert = _swal as any;
const IdleTimeout = 60000 * 10; // 10 minutes const IdleTimeout = 60000 * 10; // 10 minutes
@Component({ @Component({