mirror of
https://github.com/Coldsmiles/infstarweb.git
synced 2026-04-23 02:30:41 +08:00
fix: correct background image assignment for town modal banner
This commit is contained in:
@@ -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