//This method is used to evaluate if the given input feature is enabled by comparing it with the list of enabled features present on the page function isFeatureEnabled(featureName) { var features = document.getElementById("customFeatureControl").getAttribute("enabledFeatures"); return ((features != null) && features.includes(featureName)); }