Merge pull request #9 from Naereen/patch-1

Update main.js: fix broken gallery ?
This commit is contained in:
Chris
2024-03-22 22:55:15 -05:00
committed by GitHub

View File

@@ -26,7 +26,7 @@ cornerCutout.crossOrigin = 'anonymous';
cornerCutout.src = '/data/images/cardImages/cornerCutout.png' 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/MrTeferi/cardconjurer/master';
if (input.includes(prefix) || input.includes('http')) { if (input.includes(prefix) || input.includes('http')) {
return input; return input;
} else { } else {