mirror of
https://github.com/Coldsmiles/infstarweb.git
synced 2026-07-22 16:16:44 +08:00
fix: correct background image assignment for town modal banner
This commit is contained in:
+1
-1
@@ -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