mirror of
https://github.com/OutCast3k/coinbin.git
synced 2025-03-10 19:49:04 +01:00
transaction data for qrcode was too much for most browsers, so maximum size has been lowered
This commit is contained in:
parent
d4772fd601
commit
effdb84f24
@ -936,7 +936,7 @@ $(document).ready(function() {
|
|||||||
var w = (screen.availWidth > screen.availHeight ? screen.availWidth : screen.availHeight)/3;
|
var w = (screen.availWidth > screen.availHeight ? screen.availWidth : screen.availHeight)/3;
|
||||||
var qrcode = new QRCode("qrcode", {width:w, height:w});
|
var qrcode = new QRCode("qrcode", {width:w, height:w});
|
||||||
qrstr = $(ta).val();
|
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>");
|
$("#qrcode").html("<p>Sorry the data is too long for the QR generator.</p>");
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user