mirror of
https://github.com/Investigamer/cardconjurer.git
synced 2025-07-27 05:14:53 -05:00
Update main.js
This commit is contained in:
@@ -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.")
|
||||
|
Reference in New Issue
Block a user