diff --git a/admin/javascript/LeftAndMain.js b/admin/javascript/LeftAndMain.js index 0c4e9439b..20d847a95 100644 --- a/admin/javascript/LeftAndMain.js +++ b/admin/javascript/LeftAndMain.js @@ -73,7 +73,7 @@ jQuery.noConflict(); $(window).on("message", function(e) { var target, event = e.originalEvent, - data = typeof event.data === 'object' ? event.data : JSON.parse(event.data); + data = typeof event.data === 'object' ? event.data : 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;