From 708acf9d378ae30efdf581c5e0792e0649bf5150 Mon Sep 17 00:00:00 2001 From: Austen Adler Date: Thu, 30 Aug 2018 19:25:23 -0400 Subject: [PATCH] Remove excess JS code --- static/js/upload.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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