Zenen AI
mergeContentSettings
The mergeContentSettings function is defined if it does not already exist.
IE-warning
If the user agent is Internet Explorer or Trident, the "IE-warning" element is displayed. Otherwise, it is removed.
populateSiteSettings
The populateSiteSettings function is defined as an asynchronous function.
encodeSite
The encodeSite function is called with a JSON object as a parameter.
Window.site
The window.site object is modified and a callback function is added to the site.subscribed array.
clearSiteCheck
A setInterval function is used to check if the window.site.isProxy property is true. If it is true, an event is dispatched and the setInterval is cleared.
DOMContentLoaded
If the document is not in the loading state, the populateSiteSettings function is called. Otherwise, the function is added as an event listener for the DOMContentLoaded event.