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:
commit
3bb0d5d51a
1 changed files with 4 additions and 0 deletions
|
@ -9,6 +9,10 @@
|
||||||
window.addEventListener("message", receiveMessage, false);
|
window.addEventListener("message", receiveMessage, false);
|
||||||
|
|
||||||
function receiveMessage(e) {
|
function receiveMessage(e) {
|
||||||
|
if (!e.data || typeof e.data != 'string' || e.data == 'error') {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
var status;
|
var status;
|
||||||
try {
|
try {
|
||||||
var clientId = e.data.split(' ')[0];
|
var clientId = e.data.split(' ')[0];
|
||||||
|
|
Loading…
Reference in a new issue