forked from GithubMirrors/cardconjurer
		
	hotfix hotfix!
This commit is contained in:
		| @@ -110,8 +110,10 @@ function setSymbolFromGatherer() { | |||||||
| 		// autoCrop(setSymbol, 'https://cors-anywhere.herokuapp.com/http://gatherer.wizards.com/Handlers/Image.ashx?type=symbol&set=' + document.getElementById('inputSetCode').value + '&size=large&rarity=' + document.getElementById('inputSetRarity').value) | 		// autoCrop(setSymbol, 'https://cors-anywhere.herokuapp.com/http://gatherer.wizards.com/Handlers/Image.ashx?type=symbol&set=' + document.getElementById('inputSetCode').value + '&size=large&rarity=' + document.getElementById('inputSetRarity').value) | ||||||
| 	} | 	} | ||||||
| } | } | ||||||
|  | setSymbol.onerror = function () { | ||||||
|  | 	this.src = '/data/images/cardImages/blank.png' | ||||||
|  | } | ||||||
| setSymbol.onload = function() { | setSymbol.onload = function() { | ||||||
| 	if (setSymbol.width >=1) { |  | ||||||
| 	if (setSymbol.width / setSymbol.height > setSymbolWidth / setSymbolHeight) { | 	if (setSymbol.width / setSymbol.height > setSymbolWidth / setSymbolHeight) { | ||||||
| 		setSymbolDrawWidth = setSymbolWidth | 		setSymbolDrawWidth = setSymbolWidth | ||||||
| 		setSymbolDrawHeight = setSymbolWidth * setSymbol.height / setSymbol.width | 		setSymbolDrawHeight = setSymbolWidth * setSymbol.height / setSymbol.width | ||||||
| @@ -130,10 +132,6 @@ setSymbol.onload = function() { | |||||||
| 		setSymbolDrawY -= setSymbolDrawHeight / 2 | 		setSymbolDrawY -= setSymbolDrawHeight / 2 | ||||||
| 	} | 	} | ||||||
| 	drawCardObjects() | 	drawCardObjects() | ||||||
| 	} else { |  | ||||||
| 		setSymbol.src = '/data/images/cardImages/blank.png' |  | ||||||
| 	} |  | ||||||
| 	 |  | ||||||
| } | } | ||||||
| watermark.onload = function() { | watermark.onload = function() { | ||||||
| 	watermarkUpdated() | 	watermarkUpdated() | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Kyle
					Kyle