From 6b9b86e95ad13765f0ba70f893a8e5a1b895292d Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Thu, 9 Oct 2014 12:56:13 +0200 Subject: [PATCH] fix iframe init, compare to timestamp not date string --- source/UI/js/Core/Element.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/UI/js/Core/Element.js b/source/UI/js/Core/Element.js index aa7fa571..b97c4feb 100644 --- a/source/UI/js/Core/Element.js +++ b/source/UI/js/Core/Element.js @@ -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); } }