diff --git a/promptlib/src/index.js b/promptlib/src/index.js index 2c2f588..97e7b35 100644 --- a/promptlib/src/index.js +++ b/promptlib/src/index.js @@ -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)