Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function isWiredDensityAuto(cmpInterface) {
const density = cmpInterface.getDensityPrivate();
const wiredDensity = getOneConfig().densitySetting;
return (
density === densityValues.AUTO &&
wiredDensity !== appDensityValues.COMFY
);
}
function isDensityComfy(cmpInterface) {
const density = cmpInterface.getDensityPrivate();
return (
(density === densityValues.AUTO &&
getOneConfig().densitySetting === appDensityValues.COMFY) ||
density === densityValues.COMFY
);
}