mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Fixes issue reported on the mailing list here: https://lists.archlinux.org/pipermail/aur-general/2022-March/036833.html Thanks to Henry-Joseph Audéoud for diagnosing the issue https://lists.archlinux.org/pipermail/aur-general/2022-March/036836.html Also update the event variable to use the local copy instead of the deprecated global version https://stackoverflow.com/questions/58341832/event-is-deprecated-what-should-be-used-instead
6 lines
214 B
JavaScript
6 lines
214 B
JavaScript
document.addEventListener('DOMContentLoaded', function() {
|
|
document.querySelectorAll('.copy').addEventListener('click', function(e) {
|
|
e.preventDefault();
|
|
navigator.clipboard.writeText(e.target.text);
|
|
});
|
|
});
|