Merge branch '3.5' into 3

This commit is contained in:
Daniel Hensby 2017-01-25 13:46:49 +00:00
commit c8525c026c
No known key found for this signature in database
GPG Key ID: B00D1E9767F0B06E

View File

@ -73,7 +73,7 @@ jQuery.noConflict();
$(window).on("message", function(e) {
var target,
event = e.originalEvent,
data = JSON.parse(event.data);
data = typeof event.data === 'object' ? event.data : JSON.parse(event.data);
// Reject messages outside of the same origin
if($.path.parseUrl(window.location.href).domain !== $.path.parseUrl(event.origin).domain) return;