This commit is contained in:
mm 2024-10-30 11:28:23 +05:00
parent b2e380a7fa
commit 7e0eef67fd

View File

@ -68,7 +68,7 @@ function addText(text) {
contentDiv.appendChild(p); contentDiv.appendChild(p);
} }
async function playAudio(audioUrl) { function playAudio(audioUrl) {
fetch(audioUrl) fetch(audioUrl)
.then(response => { .then(response => {
if (!response.ok) { if (!response.ok) {
@ -165,7 +165,7 @@ async function widgetView() {
addImage(widget.ImageUrl) addImage(widget.ImageUrl)
} }
if (widget.AudioUrl) { if (widget.AudioUrl) {
await playAudio(widget.AudioUrl) playAudio(widget.AudioUrl)
} }
playSpeech(donat.Text) playSpeech(donat.Text)