mirror of https://github.com/bumi/lntip
Merge pull request #1 from karliatto/fix/when-widget-closed-stop-watching-payment
fix: when widget closed stop watching payment
This commit is contained in:
commit
9c78c91ab5
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue