forked from GithubMirrors/cardconjurer
		
	Use PNGs for ONE/ONC set symbols
This commit is contained in:
		| @@ -3134,8 +3134,12 @@ function fetchSetSymbol() { | ||||
| 		if (setSymbolAliases.has(setCode.toLowerCase())) setCode = setSymbolAliases.get(setCode.toLowerCase()); | ||||
| 		uploadSetSymbol('http://gatherer.wizards.com/Handlers/Image.ashx?type=symbol&set=' + setCode + '&size=large&rarity=' + setRarity, 'resetSetSymbol'); | ||||
| 	} else { | ||||
| 		var extension = 'svg'; | ||||
| 		if (['one', 'onc'].includes(setCode.toLowerCase())) { | ||||
| 			extension = 'png'; | ||||
| 		} | ||||
| 		if (setSymbolAliases.has(setCode.toLowerCase())) setCode = setSymbolAliases.get(setCode.toLowerCase()); | ||||
| 		uploadSetSymbol(fixUri(`/img/setSymbols/official/${setCode.toLowerCase()}-${setRarity}.svg`), 'resetSetSymbol'); | ||||
| 		uploadSetSymbol(fixUri(`/img/setSymbols/official/${setCode.toLowerCase()}-${setRarity}.` + extension), 'resetSetSymbol'); | ||||
| 	} | ||||
| } | ||||
| function lockSetSymbolCode() { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Josh birnholz
					Josh birnholz