dev
This commit is contained in:
parent
8471ee3649
commit
3c53b6641d
@ -68,7 +68,7 @@ function addText(text) {
|
||||
contentDiv.appendChild(p);
|
||||
}
|
||||
|
||||
function playAudio(audioUrl) {
|
||||
async function playAudio(audioUrl) {
|
||||
const audio = new Audio(audioUrl);
|
||||
audio.play()
|
||||
await delay(5000);
|
||||
@ -126,9 +126,9 @@ async function widgetView() {
|
||||
addImage(widget.ImageUrl)
|
||||
}
|
||||
if (widget.AudioUrl) {
|
||||
playAudio(widget.AudioUrl)
|
||||
await playAudio(widget.AudioUrl)
|
||||
}
|
||||
|
||||
playSpeech(text)
|
||||
|
||||
addText(donat.Text + " " + donat.Amount)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user