Remove logging

This commit is contained in:
Lily Rose 2024-04-25 16:40:19 +10:00
parent 6eaa219587
commit 941db8e1aa
1 changed files with 0 additions and 2 deletions

View File

@ -398,7 +398,6 @@
const generateDownloadUrls = () => { const generateDownloadUrls = () => {
saveSVGButton.classList.add("disabled") saveSVGButton.classList.add("disabled")
savePNGButton.classList.add("disabled") savePNGButton.classList.add("disabled")
console.log("starting url generation")
const svgElem = preview.firstChild const svgElem = preview.firstChild
const svg = (new XMLSerializer()).serializeToString(svgElem) const svg = (new XMLSerializer()).serializeToString(svgElem)
const svgBlob = new Blob([svg], { type: "image/svg+xml" }) const svgBlob = new Blob([svg], { type: "image/svg+xml" })
@ -417,7 +416,6 @@
const pngUrl = window.URL.createObjectURL(pngBlob) const pngUrl = window.URL.createObjectURL(pngBlob)
savePNGButton.setAttribute("href", pngUrl) savePNGButton.setAttribute("href", pngUrl)
savePNGButton.classList.remove("disabled") savePNGButton.classList.remove("disabled")
console.log("done url generation")
}, "image/png") }, "image/png")
} }
img.src = svgUrl img.src = svgUrl