Remove logging
This commit is contained in:
parent
6eaa219587
commit
941db8e1aa
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue