fix(tkfb): getCurrentUser() 추가 + monthly-comparison 초기화 수정
- tkfb-core.js: getCurrentUser() 글로벌 함수 추가 - monthly-comparison.js: window.currentUser → getCurrentUser() 전환 - 데이터 미로드 문제 해결 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -91,7 +91,7 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
const urlMode = params.get('mode');
|
||||
|
||||
setTimeout(() => {
|
||||
const user = window.currentUser;
|
||||
const user = typeof getCurrentUser === 'function' ? getCurrentUser() : window.currentUser;
|
||||
if (!user) return;
|
||||
|
||||
// 비관리자 → 작업자 전용 확인 페이지로 리다이렉트
|
||||
|
||||
Reference in New Issue
Block a user