On Mon, Mar 7, 2022 at 9:28 AM Henry-Joseph Audéoud via aur-general < [email protected]> wrote:
> Looking into `https://aur.archlinux.org/static/js/copy.js` > <https://aur.archlinux.org/static/js/copy.js>: > > document.querySelector('.copy').addEventListener( [...] > > This only applies to the first element with class "copy", so only the > HTTP link. My firefox inspector confirms that SSH link does not have an > event recorded on it. > > Manually issuing that command in the browser console makes both links > working: > > document.querySelectorAll('.copy').forEach( > element => element.addEventListener('click', function(e) { > e.preventDefault(); > navigator.clipboard.writeText(event.target.text); > }) > ); > > -- > Henry-Joseph Audéoud > audeoudh > Thanks for finding and solving the issue Henry-Joseph. I created a merge request to have this fixed: https://gitlab.archlinux.org/archlinux/aurweb/-/merge_requests/476 -- Matt Harrison
