mirror of
https://github.com/lnbits/lnbits.git
synced 2025-09-23 17:59:31 +02:00
[FEATURE] Adding coverage for 'lntbs' signet prefix (#1881)
* Update bolt11-decoder.js Adding coverage for 'lntbs' signet prefix * adding 'make bundle' modified files --------- Co-authored-by: enaples <enaples@users.noreply.github.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
// update cache version every time there is a new deployment
|
// update cache version every time there is a new deployment
|
||||||
// so the service worker reinitializes the cache
|
// so the service worker reinitializes the cache
|
||||||
const CACHE_VERSION = 51
|
const CACHE_VERSION = 52
|
||||||
const CURRENT_CACHE = `lnbits-${CACHE_VERSION}-`
|
const CURRENT_CACHE = `lnbits-${CACHE_VERSION}-`
|
||||||
|
|
||||||
const getApiKey = request => {
|
const getApiKey = request => {
|
||||||
|
2
lnbits/static/bundle.min.js
vendored
2
lnbits/static/bundle.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -22,7 +22,7 @@ function decode(paymentRequest) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function decodeHumanReadablePart(humanReadablePart) {
|
function decodeHumanReadablePart(humanReadablePart) {
|
||||||
let prefixes = ['lnbc', 'lntb', 'lnbcrt', 'lnsb']
|
let prefixes = ['lnbc', 'lntb', 'lnbcrt', 'lnsb', 'lntbs']
|
||||||
let prefix
|
let prefix
|
||||||
prefixes.forEach(value => {
|
prefixes.forEach(value => {
|
||||||
if (humanReadablePart.substring(0, value.length) === value) {
|
if (humanReadablePart.substring(0, value.length) === value) {
|
||||||
|
Reference in New Issue
Block a user