Update main.js

This commit is contained in:
Kyle
2019-04-21 18:29:38 -07:00
parent 77f03828e7
commit 4e51d075e1

View File

@@ -820,7 +820,7 @@ function toggleView(targetId, targetClass) {
//Downloads the image!
function downloadCardImage(linkElement) {
linkElement.download = document.getElementById("inputName").value + ".png"
linkElement.download = document.getElementById("inputName").value.toLowerCase() + ".png"
var cardImageData = cardCanvas.toDataURL()
if (cardImageData == undefined) {
alert("Sorry, it seems that you cannot download your card. Please try using a different browser/device.")