mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 04:34:06 -08:00
🐛 Fix issue that OAuth window did not close
This commit is contained in:
parent
acae926a36
commit
9cb106c9b4
|
@ -404,10 +404,11 @@ export default mixins(
|
|||
message: 'Connected successfully!',
|
||||
type: 'success',
|
||||
});
|
||||
|
||||
// Make sure that the event gets removed again
|
||||
window.removeEventListener('message', receiveMessage, false);
|
||||
}
|
||||
|
||||
// Make sure that the event gets removed again
|
||||
window.removeEventListener('message', receiveMessage, false);
|
||||
};
|
||||
|
||||
window.addEventListener('message', receiveMessage, false);
|
||||
|
|
Loading…
Reference in a new issue