only send init if iframe has src
This commit is contained in:
parent
728d6b1b7e
commit
4a2751839f
1 changed files with 5 additions and 3 deletions
|
@ -130,9 +130,11 @@
|
||||||
self.messageCallbacks = self.messageCallbacks || {};
|
self.messageCallbacks = self.messageCallbacks || {};
|
||||||
that.on({
|
that.on({
|
||||||
load: function init() {
|
load: function init() {
|
||||||
// send oxid to iframe
|
if (that.attr('src')) {
|
||||||
that.postMessage({init: {oxid: that.oxid}});
|
// send oxid to iframe
|
||||||
self.initTimeout = setTimeout(init, 25);
|
that.postMessage({init: {oxid: that.oxid}});
|
||||||
|
self.initTimeout = setTimeout(init, 250);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}).bindEvent({
|
}).bindEvent({
|
||||||
init: function() {
|
init: function() {
|
||||||
|
|
Loading…
Reference in a new issue