From 1520942ac9785346b8bfe32412db44d5700c9ee1 Mon Sep 17 00:00:00 2001 From: timvisee Date: Thu, 8 Jul 2021 21:21:35 +0200 Subject: [PATCH] Fix UI error after upload when share link is too long The QR-code generation logic had a character limit. This broke the upload page when the share URL is too long. This has now been fixed to support an arbitrary number of characters. Fixes https://gitlab.com/timvisee/send/-/issues/19 --- app/ui/qr.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/ui/qr.js b/app/ui/qr.js index e701d673..8f78865b 100644 --- a/app/ui/qr.js +++ b/app/ui/qr.js @@ -2,7 +2,7 @@ const raw = require('choo/html/raw'); const qrcode = require('../qrcode'); module.exports = function(url) { - const gen = qrcode(5, 'L'); + const gen = qrcode(0, 'L'); gen.addData(url); gen.make(); const qr = gen.createSvgTag({ scalable: true });