From 972fc07f8d9bef4722772f1e432ac90b1b7f7d1e Mon Sep 17 00:00:00 2001 From: Hyungi Ahn Date: Tue, 31 Mar 2026 14:22:03 +0900 Subject: [PATCH] =?UTF-8?q?fix(proxy-input):=20showToast=20=EB=AC=B4?= =?UTF-8?q?=ED=95=9C=EC=9E=AC=EA=B7=80=20=EC=A0=9C=EA=B1=B0=20+=20tbm=5Fse?= =?UTF-8?q?ssions=20=EC=BB=AC=EB=9F=BC=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - showToast: proxy-input.js 중복 정의 삭제 (tkfb-core.js 것 사용) window.showToast가 자기 자신 → 무한 호출 → stack overflow - DB: tbm_sessions에 safety_notes, work_location 컬럼 추가 대리입력 INSERT 시 500 에러 해결 Co-Authored-By: Claude Opus 4.6 (1M context) --- system1-factory/web/js/proxy-input.js | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/system1-factory/web/js/proxy-input.js b/system1-factory/web/js/proxy-input.js index 6d58395..ed6dce4 100644 --- a/system1-factory/web/js/proxy-input.js +++ b/system1-factory/web/js/proxy-input.js @@ -444,12 +444,4 @@ async function saveProxyInput() { } // ===== Toast ===== -function showToast(msg, type) { - if (window.showToast) { window.showToast(msg, type); return; } - const c = document.getElementById('toastContainer'); - const t = document.createElement('div'); - t.className = `toast toast-${type || 'info'}`; - t.textContent = msg; - c.appendChild(t); - setTimeout(() => t.remove(), 3000); -} +// showToast는 tkfb-core.js에서 제공 (중복 정의 제거)