Skip to content

Commit

Permalink
FIX: qr in index page
Browse files Browse the repository at this point in the history
  • Loading branch information
Overtorment committed Sep 22, 2021
1 parent a01a8c6 commit 600556f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/website.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 600556f

Please sign in to comment.