Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.5.1-0.0.2: [CHORE]: Remove http proxy from lnurl requests #302

Merged
merged 1 commit into from
Jan 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "remote",
"version": "2.5.1-0.0.1",
"version": "2.5.1-0.0.2",
"scripts": {
"dev": "vite dev",
"dev-https": "vite dev --mode https",
Expand Down
4 changes: 1 addition & 3 deletions src/routes/lnurl/[value]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,7 @@
if (!tag) {
parsingLnurl = true

const result = await fetch(`${API_URL}/http-proxy`, {
headers: { 'Target-URL': url.toString() }
}).then(res => res.json())
const result = await fetch(url.toString()).then(res => res.json())

if (result.status === 'ERROR') {
throw {
Expand Down
4 changes: 1 addition & 3 deletions src/routes/lnurl/[value]/auth.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,7 @@
loginURL.searchParams.set('key', signer.publicKey)
loginURL.searchParams.set('t', Date.now().toString())

const authResponse = await fetch(`${API_URL}/http-proxy`, {
headers: { 'Target-URL': loginURL.toString() }
}).then((res) => res.json())
const authResponse = await fetch(loginURL.toString()).then(res => res.json())

if (authResponse && authResponse.status === 'OK') {
authenticationSuccess = true
Expand Down
6 changes: 1 addition & 5 deletions src/routes/lnurl/[value]/pay.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -155,11 +155,7 @@
url.searchParams.set('comment', comment)
}

const result = await fetch(`${API_URL}/http-proxy`, {
headers: {
'Target-URL': url.toString()
}
}).then(res => res.json())
const result = await fetch(url.toString()).then(res => res.json())

if (result.status === 'ERROR') {
throw {
Expand Down
6 changes: 1 addition & 5 deletions src/routes/lnurl/[value]/withdraw.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,7 @@
url.searchParams.set('k1', k1)
url.searchParams.set('pr', invoice.data.request as string)

const result = await fetch(`${API_URL}/http-proxy`, {
headers: {
'Target-URL': url.toString()
}
}).then(res => res.json())
const result = await fetch(url.toString()).then(res => res.json())

if (result.status === 'ERROR') {
throw {
Expand Down