diff --git a/static/js/upload.js b/static/js/upload.js index fc21812..ee26c3f 100644 --- a/static/js/upload.js +++ b/static/js/upload.js @@ -3,15 +3,11 @@ var qrCodeCheckbox = document.getElementById("qrcode-show"); if (qrCodeCheckbox !== null) { qrCodeCheckbox.addEventListener('change', function() { - var qrCodeCheckbox = document.getElementById("qrcode-show"); - if (qrCodeCheckbox == null) { - return; - } var qrCodes = document.getElementsByClassName('qrcode'); for(var i=0; i