FIX: qr in index page
This commit is contained in:
parent
a01a8c6e14
commit
600556f84c
@ -104,7 +104,7 @@ router.get('/qr', function (req, res) {
|
||||
if (process.env.TOR_URL) {
|
||||
host = process.env.TOR_URL;
|
||||
}
|
||||
const customPath = req.url.replace('/qr/', '');
|
||||
const customPath = req.url.replace('/qr', '');
|
||||
const url = 'bluewallet:setlndhuburl?url=' + encodeURIComponent(req.protocol + '://' + host + customPath);
|
||||
var code = qr.image(url, { type: 'png' });
|
||||
res.setHeader('Content-type', 'image/png');
|
||||
|
Loading…
x
Reference in New Issue
Block a user