parent
c492618d31
commit
a3762f70b0
@ -33,7 +33,7 @@ export async function createInvoice (
|
|||||||
out: false
|
out: false
|
||||||
})
|
})
|
||||||
|
|
||||||
let hostname = url.replace(/^https?:\/\//, '')
|
let hostname = url.replace(/^https?:\/\//, '').replace(/\/+$/, '')
|
||||||
const agent = getAgent({ hostname })
|
const agent = getAgent({ hostname })
|
||||||
|
|
||||||
if (process.env.NODE_ENV !== 'production' && hostname.startsWith('localhost:')) {
|
if (process.env.NODE_ENV !== 'production' && hostname.startsWith('localhost:')) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user