Skip to content

Commit

Permalink
fixed error where the logo wasn´t displayed even if its set in settings
Browse files Browse the repository at this point in the history
  • Loading branch information
felixaschultz committed Sep 29, 2023
1 parent 46bc4d1 commit ff4465c
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cb.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -685,10 +685,10 @@
let CompanyLogoName = cookieLogo == intCookieIcon ? "Cookie Icon" : `${document.domain} logo`;

moreintHeader.innerHTML = `
${typeof logo != "undefined" ? '<img class="intCookie_ConsentLogo-container" src="'+ logo +'" alt="'+ CompanyLogoName +'" title="'+ CompanyLogoName +'">' : ``}
${typeof window.INTA.settings.logo != "undefined" ? '<img class="intSettingsCompanyLogo" src="'+ window.INTA.settings.logo +'" alt="'+ CompanyLogoName +'" title="'+ CompanyLogoName +'">' : ``}
<section class="intSettingsPoweredBy">${poweredBy}</section>`;

cookieSettingsContent.innerHTML = '<intHeader class="intastellarCookie-settings__intHeader"><img src="' + cookieLogo + '" alt="' + CompanyLogoName + '" title="' + CompanyLogoName + '" style="width: 100%;float: left; max-width: 50px;max-height: 50px;object-fit:contain;"><h2>Cookie</h2><button class="intastellarCookie-settings__close" style="background: ' + cookieColor + ';" aria-label="Close cookie banner"></button></intHeader>' +
cookieSettingsContent.innerHTML = '<intHeader class="intastellarCookie-settings__intHeader"><img src="' + window.INTA.settings.logo + '" alt="' + CompanyLogoName + '" title="' + CompanyLogoName + '" style="width: 100%;float: left; max-width: 50px;max-height: 50px;object-fit:contain;"><h2>Cookie</h2><button class="intastellarCookie-settings__close" style="background: ' + cookieColor + ';" aria-label="Close cookie banner"></button></intHeader>' +
message + cookieBtn + "" + poweredBy;

cookieSettings.appendChild(cookieSettingsContent);
Expand Down
2 changes: 1 addition & 1 deletion cb.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions gdpr-consents.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ window.INTA = {
"Phone number"
]
},
dev: true,
gcm: true
}
};
3 changes: 3 additions & 0 deletions gdpr.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -1363,9 +1363,12 @@ function checkCookieStatus() {
}else{
return `
<inta-consents-content class="intCookie_ConsentContainer-content">
${logo === null ? "" : `
<inta-consents-logo class="intCookie_ConsentLogo-container">
<img src="${logo}" class="intCookie_ConsentLogo" alt="Company logo">
</inta-consents-logo>
`}
<inta-consents-section class="intCookie_ConsentContainer-info">
${textLanguage}
<button class='intastellarCookie-settings__btn --changePermission' data-type='${datatype}'>${btnText}</button>
Expand Down
2 changes: 1 addition & 1 deletion gdpr.js

Large diffs are not rendered by default.

0 comments on commit ff4465c

Please sign in to comment.