Fix: _t 전역 변수 중복 선언 에러 수정 (const → var)

contact.js와 main.js가 동시 로드되는 index 페이지에서
const _t 중복 선언으로 SyntaxError 발생 → main.js 전체 실행 실패
→ 스크롤 애니메이션 등 모든 기능 동작 불가 문제 해결

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
68893236+KINDNICK@users.noreply.github.com 2026-03-05 01:33:34 +09:00
parent 98fdae3f48
commit ae968e2fa5
4 changed files with 8 additions and 8 deletions

View File

@ -9,8 +9,8 @@ document.addEventListener('DOMContentLoaded', function() {
initFormValidation();
});
// i18n 헬퍼
const _t = (key, fallback) => window.i18n?.t(key, fallback) ?? fallback;
// i18n 헬퍼 (var 사용 — 여러 JS 파일에서 중복 선언 허용)
var _t = _t || ((key, fallback) => window.i18n?.t(key, fallback) ?? fallback);
// 연락처 폼 초기화
function initContactForm() {

View File

@ -9,8 +9,8 @@ document.addEventListener('DOMContentLoaded', function() {
initCustom360Viewers();
});
// i18n 헬퍼
const _t = (key, fallback) => window.i18n?.t(key, fallback) ?? fallback;
// i18n 헬퍼 (var 사용 — 여러 JS 파일에서 중복 선언 허용)
var _t = _t || ((key, fallback) => window.i18n?.t(key, fallback) ?? fallback);
// 갤러리 초기화
function initGallery() {

View File

@ -13,8 +13,8 @@ document.addEventListener('DOMContentLoaded', function() {
initPortfolioTabs();
});
// i18n 헬퍼
const _t = (key, fallback) => window.i18n?.t(key, fallback) ?? fallback;
// i18n 헬퍼 (var 사용 — 여러 JS 파일에서 중복 선언 허용)
var _t = _t || ((key, fallback) => window.i18n?.t(key, fallback) ?? fallback);
// ========================================
// 카운터 애니메이션

View File

@ -10,8 +10,8 @@ document.addEventListener('DOMContentLoaded', function() {
initYouTubeAPI();
});
// i18n 헬퍼
const _t = (key, fallback) => window.i18n?.t(key, fallback) ?? fallback;
// i18n 헬퍼 (var 사용 — 여러 JS 파일에서 중복 선언 허용)
var _t = _t || ((key, fallback) => window.i18n?.t(key, fallback) ?? fallback);
// ========================================
// 포트폴리오 탭 시스템