forked from 0x2620/pandora
move message handling from pandora.js to embedPanel.js
This commit is contained in:
parent
3b0005c8ab
commit
2f56c03281
2 changed files with 13 additions and 12 deletions
|
|
@ -391,6 +391,19 @@ pandora.ui.embedPanel = function() {
|
|||
pandora_hash: that.reloadPanel
|
||||
});
|
||||
|
||||
Ox.$parent.onMessage({
|
||||
settheme: function(data) {
|
||||
if (Ox.contains(pandora.site.themes, data.theme)) {
|
||||
Ox.Theme(data.theme);
|
||||
}
|
||||
},
|
||||
seturl: function(data) {
|
||||
if (pandora.isEmbedURL(data.url)) {
|
||||
pandora.URL.push(data.url);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
return that;
|
||||
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue