fix iframe init, compare to timestamp not date string

This commit is contained in:
j 2014-10-09 12:56:13 +02:00
parent 07d5ebce4a
commit 6b9b86e95a

View file

@ -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);
}
}