Update main.js

This commit is contained in:
Kyle
2020-12-25 14:10:58 -08:00
parent ab3a002806
commit 98d5a93862

View File

@@ -27,7 +27,7 @@ cornerCutout.src = '/data/images/cardImages/cornerCutout.png'
//To save the server from being overloaded? Maybe? //To save the server from being overloaded? Maybe?
function fixUri(input) { function fixUri(input) {
var prefix = 'https://raw.githubusercontent.com/ImKyle4815/cardconjurer/master'; var prefix = 'https://raw.githubusercontent.com/ImKyle4815/cardconjurer/master';
if (input.includes(prefix) || input.includes('http') || params.get('testing')) { if (input.includes(prefix) || input.includes('http')) {
return input; return input;
} else { } else {
return prefix + input; return prefix + input;