mirror of
https://github.com/Coldsmiles/infstarweb.git
synced 2026-12-06 06:58:00 +08:00
fix: correct background image assignment for town modal banner
This commit is contained in:
1 parent
6048d4e9dc
commit
4dda002f76
1 file changed
+1
-1
+1
-1
@@ -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 = '';
|
||||
|
||||
Reference in new issue
Block a user