forked from 0x2620/pandora
in embed mode, when receiving a url as message, push it
This commit is contained in:
parent
625793ec76
commit
7be3a85074
1 changed files with 3 additions and 8 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue