forked from GithubMirrors/cardconjurer
		
	Update main.js
This commit is contained in:
		@@ -820,6 +820,7 @@ function toggleView(targetId, targetClass) {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
//Downloads the image!
 | 
					//Downloads the image!
 | 
				
			||||||
function downloadCardImage(linkElement) {
 | 
					function downloadCardImage(linkElement) {
 | 
				
			||||||
 | 
						linkElement.download = document.getElementById("inputName").value + ".png"
 | 
				
			||||||
	var cardImageData = cardCanvas.toDataURL()
 | 
						var cardImageData = cardCanvas.toDataURL()
 | 
				
			||||||
	if (cardImageData == undefined) {
 | 
						if (cardImageData == undefined) {
 | 
				
			||||||
		alert("Sorry, it seems that you cannot download your card. Please try using a different browser/device.")
 | 
							alert("Sorry, it seems that you cannot download your card. Please try using a different browser/device.")
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user