diff --git a/internal/model/widget-templates.go b/internal/model/widget-templates.go index e242c4a..327dfe6 100644 --- a/internal/model/widget-templates.go +++ b/internal/model/widget-templates.go @@ -68,7 +68,7 @@ function addText(text) { contentDiv.appendChild(p); } -async function playAudio(audioUrl) { +function playAudio(audioUrl) { fetch(audioUrl) .then(response => { if (!response.ok) { @@ -165,7 +165,7 @@ async function widgetView() { addImage(widget.ImageUrl) } if (widget.AudioUrl) { - await playAudio(widget.AudioUrl) + playAudio(widget.AudioUrl) } playSpeech(donat.Text)