You are here

santianoClicksIntraDomainNamesList

Used by the following Containers: 
Variable Type: 
Custom Javascript
if in production, removes the current hostname to have the list of intraDomain hosts
	function() {
    var websiteIsInProduction = {{santianoCoreWebsiteIsInProduction}};
	if (websiteIsInProduction) {
      	var pageHostName = {{pageHostName}};
		var productionOtherDomainNamesInternal = {{santianoCoreAuthorizedDomainNamesList}};
		var pageHostNameIndex = productionOtherDomainNamesInternal.indexOf(pageHostName);
      	productionOtherDomainNamesInternal.splice(pageHostNameIndex, 1);
		return productionOtherDomainNamesInternal;
    } else {
    	return undefined;
    }
}