mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -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!',
|
message: 'Connected successfully!',
|
||||||
type: 'success',
|
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);
|
window.addEventListener('message', receiveMessage, false);
|
||||||
|
|
Loading…
Reference in a new issue