dev
This commit is contained in:
parent
b2e380a7fa
commit
7e0eef67fd
@ -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)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user