From d68361fba301b25fe6de7d1e9c6b154f31807507 Mon Sep 17 00:00:00 2001 From: bitcoincoltd Date: Mon, 22 Jun 2015 15:58:11 +0700 Subject: [PATCH] Minor adjustment to QR length handling Don't attempt to create QR code for huge data. --- js/coinbin.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/coinbin.js b/js/coinbin.js index d326f41..05fadf4 100644 --- a/js/coinbin.js +++ b/js/coinbin.js @@ -935,6 +935,7 @@ $(document).ready(function() { var qrstr = $('textarea',$(this).closest('.input-group')).val(); if(qrstr.length > 2000){ $("#qrcode").html("

Sorry the data is too long for the QR generator.

"); + return; } }else{ var qrcode = new QRCode("qrcode");