mirror of
https://github.com/Investigamer/cardconjurer.git
synced 2025-07-26 21:04:58 -05:00
Add special case in imageURL for loading local images.
This commit is contained in:
@@ -2190,7 +2190,10 @@ function setRoundedCorners(value) {
|
||||
//Various loaders
|
||||
function imageURL(url, destination, otherParams) {
|
||||
var imageurl = url;
|
||||
if (params.get('noproxy') != '') {
|
||||
// If an image URL does not have HTTP in it, assume it's a local file at the HTML root directory.
|
||||
if (!url.includes('http')) {
|
||||
imageurl = '/' + url;
|
||||
} else if (params.get('noproxy') != '') {
|
||||
//CORS PROXY LINKS
|
||||
//Previously: https://cors.bridged.cc/
|
||||
imageurl = 'https://api.codetabs.com/v1/proxy?quest=' + url;
|
||||
|
Reference in New Issue
Block a user