fix(promptlib): 移除遗留的 setBtn 引用(设置已并入宿主设置页)

This commit is contained in:
qiqi committed 2026-11-22 17:27:46 +08:00
1 parent 59ccc66de4
commit e6400b35c3
1 file changed
-1
-1
View File
@@ -1346,7 +1346,6 @@
search.addEventListener('input', function () { query = search.value; render(); var n = wrap.querySelector('input.iwb-input'); if (n) { n.focus(); try { n.setSelectionRange(n.value.length, n.value.length) } catch (e) { /* ignore */ } } })
var newBtn = el('button', { class: 'iwb-btn iwb-btn-sm iwb-btn-primary', title: '新建提示词', text: '+ 新建提示词' })
setBtn.addEventListener('click', openSettings)
newBtn.addEventListener('click', function () { openEditModal(null, true) })
top.appendChild(search); top.appendChild(newBtn)
fixed.appendChild(top)