diff --git a/js/common.js b/js/common.js index 6de5122..919b500 100644 --- a/js/common.js +++ b/js/common.js @@ -36,8 +36,15 @@ async function loadComponents() { const response = await fetch('components/footer.html'); const html = await response.text(); footerPlaceholder.innerHTML = html; + + // 동적 푸터 로드 성공 시 백업 푸터 숨기기 + const backupFooter = document.querySelector('footer[style*="background:#222"]'); + if (backupFooter) { + backupFooter.style.display = 'none'; + } } catch (error) { console.error('Error loading footer:', error); + // 동적 푸터 로드 실패 시 백업 푸터 유지 } } }