Fix image url loading

This commit is contained in:
Alex Taxiera
2024-09-18 01:57:50 +00:00
parent 2fcddba896
commit a19d2ac480

View File

@@ -4089,13 +4089,15 @@ async function addTextbox(textboxType) {
} }
//ART TAB //ART TAB
function uploadArt(imageSource, otherParams) { function uploadArt(imageSource, otherParams) {
art.src = imageSource; imageURL(imageSource, (src) => {
art.src = src
if (otherParams && otherParams == 'autoFit') { if (otherParams && otherParams == 'autoFit') {
art.onload = function() { art.onload = function() {
autoFitArt(); autoFitArt();
art.onload = artEdited; art.onload = artEdited;
}; };
} }
});
} }
function artEdited() { function artEdited() {
card.artSource = art.src; card.artSource = art.src;