🐛 Fix issue that OAuth window did not close

This commit is contained in:
Jan Oberhauser 2020-09-23 17:31:00 +02:00
parent acae926a36
commit 9cb106c9b4

View file

@ -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);