From 4b440815ed2a7d44d80c612b79a600ffc054f95d Mon Sep 17 00:00:00 2001 From: rolux Date: Tue, 12 Feb 2013 17:35:05 +0530 Subject: [PATCH] post message to parent --- static/js/embed/pandora.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/static/js/embed/pandora.js b/static/js/embed/pandora.js index 338f70e3b..0c7256c32 100755 --- a/static/js/embed/pandora.js +++ b/static/js/embed/pandora.js @@ -87,7 +87,9 @@ Ox.load('UI', { position: checkRange } : {})) .bindEvent(function(data, event) { - window.postMessage(JSON.stringify({event: event}), '*'); + if (window.parent) { + window.parent.postMessage(JSON.stringify({event: event}), '*'); + } }) ); Ox.UI.hideLoadingScreen();