Skip to content

Commit d50f2bd

Browse files
authored
Merge pull request #14 from bee-san/claude/rewrite-chatgpt-dictionary-prompt-OqmqQ
Load dictionary when clicking anywhere on history item
2 parents f9f82f7 + c46776f commit d50f2bd

File tree

1 file changed

+3
-0
lines changed
  • yomitan-dict-builder/static/custom

1 file changed

+3
-0
lines changed

yomitan-dict-builder/static/custom/app.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,9 @@ async function renderHistory() {
263263
list.appendChild(item);
264264
}
265265

266+
list.querySelectorAll(".history-item").forEach(item =>
267+
item.addEventListener("click", () => histLoad(item.dataset.id))
268+
);
266269
list.querySelectorAll(".btn-hist-load").forEach(btn =>
267270
btn.addEventListener("click", e => { e.stopPropagation(); histLoad(btn.dataset.id); })
268271
);

0 commit comments

Comments
 (0)