mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge branch '3.5' into 3
This commit is contained in:
commit
c8525c026c
@ -73,7 +73,7 @@ jQuery.noConflict();
|
|||||||
$(window).on("message", function(e) {
|
$(window).on("message", function(e) {
|
||||||
var target,
|
var target,
|
||||||
event = e.originalEvent,
|
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
|
// Reject messages outside of the same origin
|
||||||
if($.path.parseUrl(window.location.href).domain !== $.path.parseUrl(event.origin).domain) return;
|
if($.path.parseUrl(window.location.href).domain !== $.path.parseUrl(event.origin).domain) return;
|
||||||
|
Loading…
Reference in New Issue
Block a user