#1254 handleLoginRequest - Firefox FIX

This commit is contained in:
Grzegorz Zając 2023-09-14 08:38:16 +02:00
parent 8d1646c3a9
commit 3ce4d7d458

View File

@ -45,7 +45,7 @@ const handleLoginRequest = (tabID, data) => {
}) })
.then(() => closeRequest(tabID, data.token_request_id)) .then(() => closeRequest(tabID, data.token_request_id))
.catch(async err => { .catch(async err => {
if (err.toString().includes('No tab with id')) { if (err.toString().includes('No tab with id') || err.toString().includes('Invalid tab ID')) {
return closeRequest(tabID, data.token_request_id) return closeRequest(tabID, data.token_request_id)
.then(() => TwoFasNotification.show(config.Texts.Error.LackOfTab, tabID)); .then(() => TwoFasNotification.show(config.Texts.Error.LackOfTab, tabID));
} }