gabriel / musehub public
commit-detail.ts typescript
9 lines 319 B
Raw
sha256:323d1a9842e033f3faeb38ae8d11bafde590ac7e9c553963325b961e944f3889 docs: Gabriel assessment closeout — F7 review-fix NEXT Human patch 76 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:323d1a9842e033f3faeb38ae8d11bafde590ac7e9c553963325b961e944f3889 docs: Gabriel assessment closeout — F7 review-fix NEXT Human patch 76 days ago