mirror of
https://github.com/twofas/2fas-browser-extension.git
synced 2024-11-26 12:10:25 +01:00
#1254 handleLoginRequest - Firefox FIX
This commit is contained in:
parent
8d1646c3a9
commit
3ce4d7d458
@ -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));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user