forked from 0x2620/pandora
post message to update embed frame url
This commit is contained in:
parent
ab4dfbd340
commit
6605fb7b38
1 changed files with 7 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue