From 2fc9a8304bafd1443cd14f6e40862b97fa950fdf Mon Sep 17 00:00:00 2001 From: callebtc <93376500+callebtc@users.noreply.github.com> Date: Wed, 9 Nov 2022 15:36:07 +0100 Subject: [PATCH] clean --- .../cashu/templates/cashu/wallet.html | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/lnbits/extensions/cashu/templates/cashu/wallet.html b/lnbits/extensions/cashu/templates/cashu/wallet.html index af8a03cfa..27ef5e5c1 100644 --- a/lnbits/extensions/cashu/templates/cashu/wallet.html +++ b/lnbits/extensions/cashu/templates/cashu/wallet.html @@ -2331,24 +2331,6 @@ page_container %} this.recheckPendingInvoices() this.recheckPendingTokens() - - // register lightning: link - // Intercept any `lightning:` requests - window.addEventListener('click', ev => { - // Use composedPath() for detecting links inside a Shadow DOM - // https://developer.mozilla.org/en-US/docs/Web/API/Event/composedPath - const target = ev.composedPath()[0] - - if (!target || !target.closest) { - return - } - const lightningLink = target.closest('[href^="lightning:" i]') - if (lightningLink) { - href = lightningLink.getAttribute('href').toLowerCase() - paymentRequest = href.replace('lightning:', '') - link = lightningLink - } - }) } })