removed download button from qr code page

This commit is contained in:
satyamk 2023-06-14 01:48:31 +05:30
parent 9a429a1fe8
commit a467747057
2 changed files with 0 additions and 14 deletions

View file

@ -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)

View file

@ -16,10 +16,6 @@
</div>
<div id="error-display" class="hide error">
</div>
<div class="buttons" id="qr-buttons">
<a href="" download hidden></a>
<button id="download">Download</button>
</div>
</div>
</body>
<script src="../content.js"></script>