From 9185ef9a551a80e3ec58878c8250649326ffd11b Mon Sep 17 00:00:00 2001 From: antelle Date: Sat, 30 May 2020 17:12:48 +0200 Subject: [PATCH] showing main window for yubikey alerts --- app/scripts/comp/app/chal-resp-calculator.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/scripts/comp/app/chal-resp-calculator.js b/app/scripts/comp/app/chal-resp-calculator.js index 5eff8b90..d720ece8 100644 --- a/app/scripts/comp/app/chal-resp-calculator.js +++ b/app/scripts/comp/app/chal-resp-calculator.js @@ -1,10 +1,11 @@ import { Events } from 'framework/events'; import { Logger } from 'util/logger'; import { YubiKey } from 'comp/app/yubikey'; +import { UsbListener } from 'comp/app/usb-listener'; import { Alerts } from 'comp/ui/alerts'; import { Locale } from 'util/locale'; import { Timeouts } from 'const/timeouts'; -import { UsbListener } from './usb-listener'; +import { Launcher } from 'comp/launcher'; const logger = new Logger('chal-resp'); @@ -94,6 +95,8 @@ const ChalRespCalculator = { }, _showNoKeyAlert(serial, callback) { + Launcher.showMainWindow(); + let noKeyAlert = null; let deviceEnumerationTimer; @@ -142,6 +145,8 @@ const ChalRespCalculator = { }, _showTouchAlert(serial, callback) { + Launcher.showMainWindow(); + return Alerts.alert({ header: Locale.yubiTouchRequestedHeader, body: Locale.yubiTouchRequestedBody.replace('{}', serial),