Subir archivos a "/"

This commit is contained in:
2026-08-22 23:26:23 +00:00
parent 499ef85c7b
commit 2db3988517

View File

@@ -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');