open ln wallet if no webln is available

This commit is contained in:
Believethehype 2024-01-25 16:33:43 +01:00
parent 4c45c3976a
commit b1237ba7a7
3 changed files with 11 additions and 1 deletions

View File

@ -34,6 +34,7 @@ export default {
async copyinvoice(invoice){
await navigator.clipboard.writeText(invoice)
window.open("lightning:" + invoice,"_blank")
miniToastr.showMessage("", "Copied Invoice to clipboard", VueNotifications.types.info)
},

View File

@ -166,6 +166,13 @@ function nextInput(e) {
}
}
async function copyinvoice(invoice){
await navigator.clipboard.writeText(invoice)
window.open("lightning:" + invoice,"_blank")
miniToastr.showMessage("", "Copied Invoice to clipboard", VueNotifications.types.info)
}
async function zap(invoice) {
let webln;
@ -190,6 +197,8 @@ function nextInput(e) {
dvms.find(i => i.bolt11 === invoice).status = "paid"
store.commit('set_imagedvm_results', dvms)
}
}
async function createBolt11Lud16(lud16, amount) {

View File

@ -50,7 +50,7 @@ export default {
for (let i = 5000; i < 6000; i++) {
dvmkinds.push((i.toString()))
}
console.log(dvmkinds)
const filter = new Filter().kind(31990).customTag(Alphabet.K, dvmkinds)
//await client.reconcile(filter);