Update main.js

This commit is contained in:
Kyle
2019-04-21 17:18:00 -07:00
parent 72af09b994
commit 77f03828e7

View File

@@ -820,6 +820,7 @@ function toggleView(targetId, targetClass) {
//Downloads the image!
function downloadCardImage(linkElement) {
linkElement.download = document.getElementById("inputName").value + ".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.")