Allows type autodetection up to level 40.

This commit is contained in:
Lars Jung
2012-07-02 14:49:07 +02:00
parent 4196ded909
commit e5cac4fba0
+1 -1
View File
@@ -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) {}