diff --git a/static/js/pandora.js b/static/js/pandora.js index 511c15939..2eb500dac 100644 --- a/static/js/pandora.js +++ b/static/js/pandora.js @@ -220,11 +220,7 @@ appPanel window: $(window) .on({ beforeunload: pandora.beforeunloadWindow, - resize: function() { - if (!isEmbed) { - pandora.resizeWindow(); - } - }, + resize: pandora.resizeWindow, unload: pandora.unloadWindow }) }, @@ -319,12 +315,11 @@ appPanel 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); + pandora.URL.push(url); } - }) + }); } else { pandora.$ui.appPanel = pandora.ui.appPanel().display(); Ox.Request.requests() && pandora.$ui.loadingIcon.start();