mirror of
https://github.com/Investigamer/cardconjurer.git
synced 2025-07-26 21:04:58 -05:00
Don't use proxy server when loading set symbol (disable CORS in browser)
This commit is contained in:

committed by
Josh birnholz

parent
8014ab17e3
commit
8241e379b9
@@ -2824,8 +2824,8 @@ function fetchSetSymbol() {
|
||||
uploadSetSymbol(fixUri(`/img/setSymbols/custom/${setCode.toLowerCase()}-${setRarity}.svg`), 'resetSetSymbol');
|
||||
} else {
|
||||
if (setSymbolAliases.has(setCode.toLowerCase())) setCode = setSymbolAliases.get(setCode.toLowerCase());
|
||||
uploadSetSymbol(fixUri(`/img/setSymbols/official/${setCode.toLowerCase()}-${setRarity}.svg`), 'resetSetSymbol');
|
||||
//imageURL('http://gatherer.wizards.com/Handlers/Image.ashx?type=symbol&set=' + setCode + '&size=large&rarity=' + setRarity, uploadSetSymbol, 'resetSetSymbol');
|
||||
// uploadSetSymbol(fixUri(`/img/setSymbols/official/${setCode.toLowerCase()}-${setRarity}.svg`), 'resetSetSymbol');
|
||||
uploadSetSymbol('http://gatherer.wizards.com/Handlers/Image.ashx?type=symbol&set=' + setCode + '&size=large&rarity=' + setRarity, 'resetSetSymbol');
|
||||
}
|
||||
}
|
||||
function lockSetSymbolCode() {
|
||||
@@ -3473,7 +3473,7 @@ function imageURL(url, destination, otherParams) {
|
||||
} else if (params.get('noproxy') != '') {
|
||||
//CORS PROXY LINKS
|
||||
//Previously: https://cors.bridged.cc/
|
||||
imageurl = 'https://api.codetabs.com/v1/proxy?quest=' + url;
|
||||
imageurl = 'https://api.codetabs.com/v1/proxy?quest=' + encodeURIComponent(url);
|
||||
}
|
||||
destination(imageurl, otherParams);
|
||||
}
|
||||
|
Reference in New Issue
Block a user