From 2db3988517999ee04b992f98c34e1a55acf39f80 Mon Sep 17 00:00:00 2001 From: marsalva Date: Sat, 22 Aug 2026 23:26:23 +0000 Subject: [PATCH] Subir archivos a "/" --- index.html | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 1f5564b..633f3a1 100644 --- a/index.html +++ b/index.html @@ -439,8 +439,11 @@ function initProtectionBanner(subscription) { const bannerImg = document.getElementById('promoBannerImg'); if (!banner) return; - // 🛑 ELIMINADA LA SOBREESCRITURA DE LA BASE DE DATOS - // Ahora siempre cargará la imagen física especificada en el HTML. + // Si la empresa subió una imagen desde configuración, la aplicamos + const customAd = globalCompanyData?.company_ad || globalCompanyData?.ad; + if (customAd && bannerImg) { + bannerImg.src = customAd; + } const wasClosed = localStorage.getItem(`promo_closed_${urlToken}`) === 'true'; const isPlanPage = window.location.pathname.includes('publi.html');