Allows type autodetection up to level 40.

pull/1/head
Lars Jung 13 years ago
parent 4196ded909
commit e5cac4fba0

@ -22,7 +22,7 @@
// is to long to be encoded. At the moment it should work with up to 271 characters. // is to long to be encoded. At the moment it should work with up to 271 characters.
createBestQr = function (text) { createBestQr = function (text) {
for (var type = 2; type <= 10; type += 1) { for (var type = 2; type <= 40; type += 1) {
try { try {
return createQr(type, 'L', text); return createQr(type, 'L', text);
} catch (err) {} } catch (err) {}

Loading…
Cancel
Save