From 6605fb7b38d4251105ad27ef2fddeb3a9fbbac9a Mon Sep 17 00:00:00 2001 From: rolux Date: Thu, 21 Feb 2013 21:37:59 +0530 Subject: [PATCH] post message to update embed frame url --- static/js/pandora.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/static/js/pandora.js b/static/js/pandora.js index f355d2b0d..511c15939 100644 --- a/static/js/pandora.js +++ b/static/js/pandora.js @@ -318,6 +318,13 @@ appPanel Ox.Theme(pandora.user.ui.theme); if (isEmbed) { pandora.$ui.embedPanel = pandora.ui.embedPanel().display(); + window.addEventListener('message', function(e) { + Ox.print('MESSAGE:' e.data); + var url = e.data; + if (pandora.isEmbedURL(url)) { + pandora.url.push(url); + } + }) } else { pandora.$ui.appPanel = pandora.ui.appPanel().display(); Ox.Request.requests() && pandora.$ui.loadingIcon.start();