mirror of
https://github.com/usebruno/bruno.git
synced 2024-11-25 01:14:23 +01:00
parent
5a31daf84a
commit
179c30b15b
@ -75,6 +75,11 @@ const authorizeUserInWindow = ({ authorizeUrl, callbackUrl, session }) => {
|
||||
try {
|
||||
await window.loadURL(authorizeUrl);
|
||||
} catch (error) {
|
||||
// If browser redirects before load finished, loadURL throws an error with code ERR_ABORTED. This should be ignored.
|
||||
if (error.code === 'ERR_ABORTED') {
|
||||
console.debug('Ignoring ERR_ABORTED during authorizeUserInWindow');
|
||||
return;
|
||||
}
|
||||
reject(error);
|
||||
window.close();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user