From 4dda002f7678d2078aedbf43375f6399b9557d9d Mon Sep 17 00:00:00 2001 From: zhangyuheng Date: Tue, 17 Mar 2026 00:27:37 +0800 Subject: [PATCH] fix: correct background image assignment for town modal banner --- js/towns_script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/towns_script.js b/js/towns_script.js index b46e524..279d9cc 100644 --- a/js/towns_script.js +++ b/js/towns_script.js @@ -180,8 +180,8 @@ document.addEventListener('DOMContentLoaded', () => { var gradient = getTownGradient(item); banner.className = 'town-modal-banner' + (hasLogo ? '' : ' no-logo'); if (hasLogo) { - banner.style.backgroundImage = "url('" + item.logo + "')"; banner.style.background = ''; + banner.style.backgroundImage = "url('" + item.logo + "')"; banner.innerHTML = ''; } else { banner.style.backgroundImage = '';