mirror of
https://github.com/Investigamer/cardconjurer.git
synced 2025-07-27 05:14:53 -05:00
Fix image url loading
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user