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
function uploadArt(imageSource, otherParams) {
art.src = imageSource;
if (otherParams && otherParams == 'autoFit') {
art.onload = function() {
autoFitArt();
art.onload = artEdited;
};
}
imageURL(imageSource, (src) => {
art.src = src
if (otherParams && otherParams == 'autoFit') {
art.onload = function() {
autoFitArt();
art.onload = artEdited;
};
}
});
}
function artEdited() {
card.artSource = art.src;