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();