From a467747057b0fb4e6e5b0af010c77f776574c93e Mon Sep 17 00:00:00 2001 From: satyamk Date: Wed, 14 Jun 2023 01:48:31 +0530 Subject: [PATCH] removed download button from qr code page --- src/qrCodeGenerator.ts | 10 ---------- src/static/qrcode.html | 4 ---- 2 files changed, 14 deletions(-) diff --git a/src/qrCodeGenerator.ts b/src/qrCodeGenerator.ts index 0bab0077..b9702856 100644 --- a/src/qrCodeGenerator.ts +++ b/src/qrCodeGenerator.ts @@ -13,11 +13,6 @@ function displayError() { function setUpPage() { const imgElem: HTMLImageElement = document.querySelector("div#qr-canvas img") - const anchorElem: HTMLAnchorElement = - document.querySelector("div#qr-buttons a") - const downloadButton: HTMLButtonElement = document.querySelector( - "div#qr-buttons button", - ) const url = new URL(window.location.href) let data = url.searchParams.get("data") @@ -32,13 +27,8 @@ function setUpPage() { displayError() } else { imgElem.src = url - anchorElem.href = url } }) - - downloadButton.addEventListener("click", function () { - anchorElem.click() - }) } window.addEventListener("load", setUpPage) diff --git a/src/static/qrcode.html b/src/static/qrcode.html index 3330881e..183fc857 100644 --- a/src/static/qrcode.html +++ b/src/static/qrcode.html @@ -16,10 +16,6 @@
-
- - -