mirror of
https://github.com/OutCast3k/coinbin.git
synced 2025-02-02 14:10:27 +01:00
Minor adjustment to QR length handling
Don't attempt to create QR code for huge data.
This commit is contained in:
parent
1cd101fd9e
commit
d68361fba3
@ -935,6 +935,7 @@ $(document).ready(function() {
|
|||||||
var qrstr = $('textarea',$(this).closest('.input-group')).val();
|
var qrstr = $('textarea',$(this).closest('.input-group')).val();
|
||||||
if(qrstr.length > 2000){
|
if(qrstr.length > 2000){
|
||||||
$("#qrcode").html("<p>Sorry the data is too long for the QR generator.</p>");
|
$("#qrcode").html("<p>Sorry the data is too long for the QR generator.</p>");
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
var qrcode = new QRCode("qrcode");
|
var qrcode = new QRCode("qrcode");
|
||||||
|
Loading…
Reference in New Issue
Block a user