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);
|
var gradient = getTownGradient(item);
|
||||||
banner.className = 'town-modal-banner' + (hasLogo ? '' : ' no-logo');
|
banner.className = 'town-modal-banner' + (hasLogo ? '' : ' no-logo');
|
||||||
if (hasLogo) {
|
if (hasLogo) {
|
||||||
banner.style.backgroundImage = "url('" + item.logo + "')";
|
|
||||||
banner.style.background = '';
|
banner.style.background = '';
|
||||||
|
banner.style.backgroundImage = "url('" + item.logo + "')";
|
||||||
banner.innerHTML = '';
|
banner.innerHTML = '';
|
||||||
} else {
|
} else {
|
||||||
banner.style.backgroundImage = '';
|
banner.style.backgroundImage = '';
|
||||||
|
|||||||
Reference in New Issue
Block a user