transaction data for qrcode was too much for most browsers, so maximum size has been lowered

This commit is contained in:
OutCast3k 2015-06-22 10:47:54 +00:00
parent d4772fd601
commit effdb84f24

View file

@ -936,7 +936,7 @@ $(document).ready(function() {
var w = (screen.availWidth > screen.availHeight ? screen.availWidth : screen.availHeight)/3;
var qrcode = new QRCode("qrcode", {width:w, height:w});
qrstr = $(ta).val();
if(qrstr.length > 2000){
if(qrstr.length > 1024){
$("#qrcode").html("<p>Sorry the data is too long for the QR generator.</p>");
}
} else {