2 Commits

Author SHA1 Message Date
Alex Taxiera
7354b6f81d Merge a19d2ac480 into 2fcddba896 2024-09-18 02:01:02 +00:00
Alex Taxiera
a19d2ac480 Fix image url loading 2024-09-18 01:57:50 +00:00

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;