()
| 95 | |
| 96 | // ── API key save/cancel handlers ────────────────────────────────────────── |
| 97 | const close = () => { |
| 98 | if (document.body.contains(overlay)) document.body.removeChild(overlay); |
| 99 | if (onClose) onClose(); |
| 100 | }; |
| 101 | |
| 102 | apiPanel.querySelector('#settings-cancel-btn').onclick = close; |
| 103 | apiPanel.querySelector('#settings-save-btn').onclick = () => { |