v4.0.7: 덱 목록 JS 캐시 무효화 및 UaDeckFavorites.init 방어 처리

구 deck-favorites.js가 CDN에 남아 init 호출이 덱 로드를 막던 문제를 스크립트 ?v= 쿼리와 optional init로 수정한다.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-06-23 16:19:03 +09:00
parent ac1ab7d8c0
commit f3b7ac6cf0
5 changed files with 31 additions and 21 deletions

View File

@@ -4,7 +4,7 @@
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-4516420168710424" crossorigin="anonymous"></script>
<link rel="stylesheet" href="./style/output.css?v=4.0.6" />
<link rel="stylesheet" href="./style/output.css?v=4.0.7" />
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800;900&family=Noto+Sans+KR:wght@400;700;900&display=swap" rel="stylesheet" />
<title>내 덱 관리 - UNIARE</title>
</head>
@@ -76,13 +76,13 @@
</div>
</div>
<script src="/script/api.js"></script>
<script src="/script/ads.js"></script>
<script src="/script/deck-favorites.js"></script>
<script src="/script/deck-preview-hold.js"></script>
<script src="/script/page-i18n.js"></script>
<script src="/script/page-help.js"></script>
<script src="/script/auth-header.js"></script>
<script src="/script/api.js?v=4.0.7"></script>
<script src="/script/ads.js?v=4.0.7"></script>
<script src="/script/deck-favorites.js?v=4.0.7"></script>
<script src="/script/deck-preview-hold.js?v=4.0.7"></script>
<script src="/script/page-i18n.js?v=4.0.7"></script>
<script src="/script/page-help.js?v=4.0.7"></script>
<script src="/script/auth-header.js?v=4.0.7"></script>
<script>
/** @type {Array<object>} */
let allDecks = [];
@@ -385,7 +385,9 @@
if (window.UaPageI18n?.applyPageI18n) {
await window.UaPageI18n.applyPageI18n();
}
await UaDeckFavorites.init();
if (typeof UaDeckFavorites?.init === 'function') {
await UaDeckFavorites.init();
}
loadDecks();
document.getElementById('deck-search').addEventListener('input', renderDeckList);