Actualizar index.html
This commit is contained in:
@@ -439,11 +439,8 @@ function initProtectionBanner(subscription) {
|
|||||||
const bannerImg = document.getElementById('promoBannerImg');
|
const bannerImg = document.getElementById('promoBannerImg');
|
||||||
if (!banner) return;
|
if (!banner) return;
|
||||||
|
|
||||||
// Si la empresa subió una imagen desde configuración, la aplicamos
|
// 🛑 ELIMINADA LA SOBREESCRITURA DE LA BASE DE DATOS
|
||||||
const customAd = globalCompanyData?.company_ad || globalCompanyData?.ad;
|
// Ahora siempre cargará la imagen física especificada en el HTML.
|
||||||
if (customAd && bannerImg) {
|
|
||||||
bannerImg.src = customAd;
|
|
||||||
}
|
|
||||||
|
|
||||||
const wasClosed = localStorage.getItem(`promo_closed_${urlToken}`) === 'true';
|
const wasClosed = localStorage.getItem(`promo_closed_${urlToken}`) === 'true';
|
||||||
const isPlanPage = window.location.pathname.includes('publi.html');
|
const isPlanPage = window.location.pathname.includes('publi.html');
|
||||||
|
|||||||
Reference in New Issue
Block a user