hotfix hotfix!

This commit is contained in:
Kyle
2020-08-17 11:54:30 -07:00
parent bad4744eb6
commit eeebd776c3

View File

@@ -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)
}
}
setSymbol.onerror = function () {
this.src = '/data/images/cardImages/blank.png'
}
setSymbol.onload = function() {
if (setSymbol.width >=1) {
if (setSymbol.width / setSymbol.height > setSymbolWidth / setSymbolHeight) {
setSymbolDrawWidth = setSymbolWidth
setSymbolDrawHeight = setSymbolWidth * setSymbol.height / setSymbol.width
@@ -130,10 +132,6 @@ setSymbol.onload = function() {
setSymbolDrawY -= setSymbolDrawHeight / 2
}
drawCardObjects()
} else {
setSymbol.src = '/data/images/cardImages/blank.png'
}
}
watermark.onload = function() {
watermarkUpdated()