From aec06d37b6570c4f95cf1eb513d89b839abcd811 Mon Sep 17 00:00:00 2001 From: Misa Liu Date: Tue, 5 Mar 2024 00:03:41 +0800 Subject: [PATCH] feat: Made reverse host list editable --- src/renderer/index.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/renderer/index.ts b/src/renderer/index.ts index 5069c11..df8ea30 100644 --- a/src/renderer/index.ts +++ b/src/renderer/index.ts @@ -154,12 +154,13 @@ async function onSettingWindowCreated(view: Element) { dom.container.classList.add('setting-host-list-item'); dom.container.dataset.direction = 'row'; - dom.container.dataset.configArrayKey = type; - dom.container.dataset.configArrayIndex = `${index}`; dom.input.classList.add('q-input__inner'); dom.input.type = 'url'; dom.input.value = host; + dom.input.addEventListener('input', () => { + ob11Config[type][index] = dom.input.value; + }); dom.inputContainer.classList.add('q-input'); dom.inputContainer.appendChild(dom.input);