diff --git a/files/assets/lnme.js b/files/assets/lnme.js index 50bb659..01569c8 100644 --- a/files/assets/lnme.js +++ b/files/assets/lnme.js @@ -210,6 +210,11 @@ class LnMe { shouldSetHash: false }); this.target = document.querySelector('.jPopup .content').firstElementChild; + + // When popup is closed, we stop watching the payment. + document.querySelector('.jCloseBtn').addEventListener('click', (e) => { + this.stopWatchingPayment(); + }); } thanks() {