mirror of
https://github.com/vale981/tridactyl
synced 2025-03-04 17:11:40 -05:00
removed download button from qr code page
This commit is contained in:
parent
9a429a1fe8
commit
a467747057
2 changed files with 0 additions and 14 deletions
|
@ -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)
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Reference in a new issue