1520942ac9
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
10 lines
245 B
JavaScript
10 lines
245 B
JavaScript
const raw = require('choo/html/raw');
|
|
const qrcode = require('../qrcode');
|
|
|
|
module.exports = function(url) {
|
|
const gen = qrcode(0, 'L');
|
|
gen.addData(url);
|
|
gen.make();
|
|
const qr = gen.createSvgTag({ scalable: true });
|
|
return raw(qr);
|
|
};
|