commit-detail.ts
typescript
sha256:2edd1943a6367c0da5d64db5b9dd3ac2cc61eebb3a7eda94894f7d4767d146f3
docs(#139): annotate unused DAG/commit-graph CSS instead of…
Sonnet 5
minor
⚠ breaking
57 days ago
| 1 | export function initCommitDetail(): void { |
| 2 | const btn = document.querySelector<HTMLButtonElement>('.cmt-copy-btn'); |
| 3 | const shaEl = document.getElementById('cmt-sha'); |
| 4 | if (!btn || !shaEl) return; |
| 5 | const sha = shaEl.title; |
| 6 | btn.addEventListener('click', () => { |
| 7 | void navigator.clipboard.writeText(sha); |
| 8 | }); |
| 9 | } |
File History
1 commit
sha256:2edd1943a6367c0da5d64db5b9dd3ac2cc61eebb3a7eda94894f7d4767d146f3
docs(#139): annotate unused DAG/commit-graph CSS instead of…
Sonnet 5
minor
⚠
57 days ago