-
${o.message}
-
${o.info.split('\n').map((line, i, arr)=>{
+
${options.message}
+
${options.info.split('\n').map((line, i, arr)=>{
return `${line}
- ${arr.length > 1 && o.enableMore && i == 0 ? `${o.more}` : ''}`;
+ ${arr.length > 1 && options.enableMore && i == 0 ? `${options.more}` : ''}`;
}).join('')}
- ${o.sections.map((section)=>{
+ ${options.sections.map((section)=>{
let hasConsent = getConsents()[section];
let isEssential = section === 'essential';
let disabledProp = isEssential ? 'disabled' : '';
let checkedProp = isEssential ? 'checked' : '';
if (hasConsent !== undefined) checkedProp = hasConsent ? 'checked' : '';
- let cookies = o[`${section}Cookies`];
+ let cookies = options[`${section}Cookies`];
return `
`;
}).join('')}