diff --git a/basicswap/templates/wallet.html b/basicswap/templates/wallet.html
index 133646e..aca5281 100644
--- a/basicswap/templates/wallet.html
+++ b/basicswap/templates/wallet.html
@@ -456,63 +456,63 @@
{% endif %}
+document.addEventListener('DOMContentLoaded', function() {
+ const stealthAddressElement = document.getElementById('stealth_address');
+ if (stealthAddressElement) {
+ stealthAddressElement.addEventListener('click', function() {
+ copyAndShowMessage('stealth_address');
+ });
+ }
+ const mainDepositAddressElement = document.getElementById('main_deposit_address');
+ if (mainDepositAddressElement) {
+ mainDepositAddressElement.addEventListener('click', function() {
+ copyAndShowMessage('main_deposit_address');
+ });
+ }
+ const moneroMainAddressElement = document.getElementById('monero_main_address');
+ if (moneroMainAddressElement) {
+ moneroMainAddressElement.addEventListener('click', function() {
+ copyAndShowMessage('monero_main_address');
+ });
+ }
+ const moneroSubAddressElement = document.getElementById('monero_sub_address');
+ if (moneroSubAddressElement) {
+ moneroSubAddressElement.addEventListener('click', function() {
+ copyAndShowMessage('monero_sub_address');
+ });
+ }
+});
+