Version 5.0.0 beta 1
This commit is contained in:
1 parent
25ddeb65d6
commit
15c7beabc5
6736 files changed
+627902
-497943
No files matched your search
@@ -61,7 +61,7 @@
|
||||
}
|
||||
counter++;
|
||||
}, 1000 );
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Starts our main loop, which posts messages to the parent frame as needed
|
||||
@@ -168,12 +168,25 @@
|
||||
ips.utils.log( e.origin + ' does not equal ' + _origin );
|
||||
return;
|
||||
}
|
||||
if (typeof e.data !== "string") {
|
||||
return;
|
||||
}
|
||||
|
||||
let pmData;
|
||||
try {
|
||||
pmData = JSON.parse(e.data);
|
||||
if (typeof pmData !== 'object') {
|
||||
return;
|
||||
}
|
||||
} catch (e) {
|
||||
return; // we don't log here because the message could have come from somewhere else
|
||||
}
|
||||
|
||||
try {
|
||||
var pmData = JSON.parse( e.data );
|
||||
var method = pmData.method;
|
||||
var method = pmData.method;
|
||||
} catch (err) {
|
||||
ips.utils.error("iframe: invalid data.");
|
||||
ips.utils.error(err.message)
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -183,7 +196,7 @@
|
||||
} else {
|
||||
ips.utils.log("Method " + method + " doesn't exist");
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
ips.utils.contentLoaded( window, function () {
|
||||
|
||||
Reference in new issue
Block a user