mirror of
https://github.com/bumi/lntip
synced 2025-06-16 17:55:35 +00:00
fix: when widget closed stop watching payment
This commit is contained in:
parent
7cac6ba7fc
commit
e7acaf7821
@ -210,6 +210,11 @@ class LnMe {
|
|||||||
shouldSetHash: false
|
shouldSetHash: false
|
||||||
});
|
});
|
||||||
this.target = document.querySelector('.jPopup .content').firstElementChild;
|
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() {
|
thanks() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user