This commit is contained in:
mm 2024-10-30 01:00:03 +05:00
parent 4e9dee4978
commit 3b0a03c3de

View File

@ -87,7 +87,7 @@ async function endDonat(donatID) {
while (contentDiv.firstChild) {
contentDiv.removeChild(contentDiv.firstChild);
}
let response = await fetch(baseUrl + '/donat/view/' + String(donatID), {method: 'POST'});
let response = await fetch(baseUrl + '/widget/donat/view/' + String(donatID), {method: 'POST'});
}
let audio;
@ -109,8 +109,10 @@ async function widgetView() {
let widget = await getWidgetInfo(widgetID)
console.log(donat);
console.log(widget);
addImage(widget.ImageUrl)
if (widget.ImageUrl != "") {
addImage(widget.ImageUrl)
}
addAudio(widget.AudioUrl)
addText(donat.Text + " " + donat.Amount)