mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-05 02:39:46 +02:00
Listner event
This commit is contained in:
parent
8965f04998
commit
2b8330eb3e
1 changed files with 2 additions and 2 deletions
|
@ -30,8 +30,8 @@ try {
|
|||
var messageEvent = eventMethod == "attachEvent" ? "onmessage" : "message";
|
||||
// Listen for a message from the iframe.
|
||||
eventer(messageEvent, function (e) {
|
||||
console.log('EventListener', e);
|
||||
if(e.getHeight){
|
||||
console.log('EventListener', e.data);
|
||||
if(e.data.getHeight){
|
||||
var height= $('body').height();
|
||||
parent.postMessage({height: height}, '*');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue