From 69d2d71c4b3862640f6e9741b6996310f60ea0a3 Mon Sep 17 00:00:00 2001 From: Boris Nagaev Date: Tue, 16 Apr 2024 19:26:32 -0300 Subject: [PATCH] static/index.html: adjust for LSAT -> L402 --- static/index.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/static/index.html b/static/index.html index fb40531..9fe2a71 100644 --- a/static/index.html +++ b/static/index.html @@ -53,10 +53,10 @@

Bos Scores

let lastInvoice = null; function parseInvoice(invoice) { - const rex = /LSAT macaroon="(.*?)", invoice="(.*?)"/i; + const rex = /(LSAT|L402) macaroon="(.*?)", invoice="(.*?)"/i; parts = invoice.match(rex); - lastMacaroon = parts[1]; - lastInvoice = parts[2]; + lastMacaroon = parts[2]; + lastInvoice = parts[3]; } function loadJSON(url, elem) { @@ -90,7 +90,7 @@

Bos Scores

.then((provider) => { provider.sendPayment(lastInvoice) .then((response) => { - authorization = "LSAT " + lastMacaroon + ":" + response.preimage; + authorization = "L402 " + lastMacaroon + ":" + response.preimage; $('#reload-bos').click(); $('#reload-lnd').click(); }); @@ -105,7 +105,7 @@

Bos Scores

function addPreimage() { let preimage = prompt("Enter hex encoded preimage"); - authorization = "LSAT " + lastMacaroon + ":" + preimage; + authorization = "L402 " + lastMacaroon + ":" + preimage; $('#reload-bos').click(); $('#reload-lnd').click(); }