Skip to content

Commit

Permalink
remove console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
bitkarrot committed Jan 7, 2024
1 parent d6ff065 commit f0cb6cc
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions templates/decoder/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ <h6 class="text-subtitle1 q-my-none">
sendFormData() {
// check if its a ln address first
let url = this.isValidLNaddress(this.input)
console.log('LN address Result: ', url);
// console.log('LN address Result: ', url);

if (url !='invalid') {
this.lnaddress = this.input
Expand All @@ -164,7 +164,7 @@ <h6 class="text-subtitle1 q-my-none">
this.lnurlData = ''

this.getLNAddressData(url)
console.log("LN addressData", this.lnaddressData)
// console.log("LN addressData", this.lnaddressData)

} else { // try lnurl or bolt11 invoice
var info = this.decoderFunction({"data": this.input})
Expand All @@ -176,13 +176,13 @@ <h6 class="text-subtitle1 q-my-none">
let isValid = emailRegex.test(address);

if (isValid) {
console.log('LN address is valid');
//console.log('LN address is valid');
const [name, domain] = address.split('@');
const url = `https://${domain}/.well-known/lnurlp/${name}`;
console.log("url", url)
//console.log("url", url)
return url;
} else {
console.log('Input is not a LN address');
//console.log('Input is not a LN address');
return 'invalid'
}
},
Expand All @@ -195,7 +195,7 @@ <h6 class="text-subtitle1 q-my-none">
throw new Error('Network response was not ok');
}
const data = await response.json()
console.log("get ResponseData: ", data)
// console.log("get ResponseData: ", data)
// this.lnurlData = data
return data

Expand All @@ -205,11 +205,11 @@ <h6 class="text-subtitle1 q-my-none">
},
getLNURLData: async function(data) {
this.lnurlData = await this.getResponseData(data)
console.log(" lnurl response: ", this.lnurlData)
// console.log(" lnurl response: ", this.lnurlData)
},
getLNAddressData: async function(data) {
this.lnaddressData = await this.getResponseData(data)
console.log('ln address response: ', this.lnaddressData)
// console.log('ln address response: ', this.lnaddressData)
},
decoderFunction: async function (data) {
LNbits.api
Expand Down

0 comments on commit f0cb6cc

Please sign in to comment.