• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.4 XenForo.serverTimeInfo.now injected into Ad Code

arn

Active member
#1
One of our ads isn't rendering correctly, due to what seems like Xenforo manipulating the DOM after rendering.

You can see "XenForo.serverTimeInfo.now" code being injected which is messing it up. How can I prevent this from happening?
 

Attachments

Mike

XenForo developer
Staff member
#2
The way the code is written -- XenForo.serverTimeInfo.now = 1234; ... -- isn't how it shows up in XF. We set it up in using object syntax. Then, there are only 3 lines in the JS that actually touch it and they just read the value back.

I have to conclude it's not actually XF itself that is doing that.
 

Mike

XenForo developer
Staff member
#4
That seems like a likely cause actually (given that it needs to update those values for the cache).