Merge pull request #237 from impak-finance/fix-check-session-iframe-infinit-cb

Fixed infinite callback loop in the check-session iframe
This commit is contained in:
Juan Ignacio Fiorentino 2018-03-28 12:00:52 -03:00 committed by GitHub
commit 3bb0d5d51a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,6 +9,10 @@
window.addEventListener("message", receiveMessage, false);
function receiveMessage(e) {
if (!e.data || typeof e.data != 'string' || e.data == 'error') {
return;
}
var status;
try {
var clientId = e.data.split(' ')[0];