fix iframe init, compare to timestamp not date string
This commit is contained in:
parent
07d5ebce4a
commit
6b9b86e95a
1 changed files with 2 additions and 2 deletions
|
@ -133,8 +133,8 @@
|
|||
if (that.attr('src')) {
|
||||
// send oxid to iframe
|
||||
that.postMessage({init: {oxid: that.oxid}});
|
||||
self.initTime = self.initTime || new Date();
|
||||
if (new Date() < self.initTime + 60000) {
|
||||
self.initTime = self.initTime || +new Date();
|
||||
if (+new Date() < self.initTime + 60000) {
|
||||
self.initTimeout = setTimeout(init, 250);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue