post message to parent

This commit is contained in:
rolux 2013-02-12 17:35:05 +05:30
parent a864cc2085
commit 4b440815ed

View file

@ -87,7 +87,9 @@ Ox.load('UI', {
position: checkRange
} : {}))
.bindEvent(function(data, event) {
window.postMessage(JSON.stringify({event: event}), '*');
if (window.parent) {
window.parent.postMessage(JSON.stringify({event: event}), '*');
}
})
);
Ox.UI.hideLoadingScreen();