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)
|
window: $(window)
|
||||||
.on({
|
.on({
|
||||||
beforeunload: pandora.beforeunloadWindow,
|
beforeunload: pandora.beforeunloadWindow,
|
||||||
resize: function() {
|
resize: pandora.resizeWindow,
|
||||||
if (!isEmbed) {
|
|
||||||
pandora.resizeWindow();
|
|
||||||
}
|
|
||||||
},
|
|
||||||
unload: pandora.unloadWindow
|
unload: pandora.unloadWindow
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
@ -319,12 +315,11 @@ appPanel
|
||||||
if (isEmbed) {
|
if (isEmbed) {
|
||||||
pandora.$ui.embedPanel = pandora.ui.embedPanel().display();
|
pandora.$ui.embedPanel = pandora.ui.embedPanel().display();
|
||||||
window.addEventListener('message', function(e) {
|
window.addEventListener('message', function(e) {
|
||||||
Ox.print('MESSAGE:' e.data);
|
|
||||||
var url = e.data;
|
var url = e.data;
|
||||||
if (pandora.isEmbedURL(url)) {
|
if (pandora.isEmbedURL(url)) {
|
||||||
pandora.url.push(url);
|
pandora.URL.push(url);
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
} else {
|
} else {
|
||||||
pandora.$ui.appPanel = pandora.ui.appPanel().display();
|
pandora.$ui.appPanel = pandora.ui.appPanel().display();
|
||||||
Ox.Request.requests() && pandora.$ui.loadingIcon.start();
|
Ox.Request.requests() && pandora.$ui.loadingIcon.start();
|
||||||
|
|
Loading…
Reference in a new issue