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