1
1
mirror of https://github.com/bumi/lntip synced 2026-02-15 13:37:49 +00:00

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:
2020-10-25 23:06:34 +01:00
committed by GitHub

View File

@@ -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() {