dev
This commit is contained in:
parent
526d031a22
commit
3d0940541e
@ -68,7 +68,7 @@ function addText(text) {
|
|||||||
contentDiv.appendChild(p);
|
contentDiv.appendChild(p);
|
||||||
}
|
}
|
||||||
|
|
||||||
function playAudio(audioUrl, widgetID) {
|
async function playAudio(audioUrl, widgetID) {
|
||||||
if (!audioUrl.includes("http")) {
|
if (!audioUrl.includes("http")) {
|
||||||
audioUrl = "http://147.45.237.174/api/widget/media/audio/file/get/" + String(widgetID)
|
audioUrl = "http://147.45.237.174/api/widget/media/audio/file/get/" + String(widgetID)
|
||||||
}
|
}
|
||||||
@ -168,7 +168,7 @@ async function widgetView() {
|
|||||||
addImage(widget.ImageUrl)
|
addImage(widget.ImageUrl)
|
||||||
}
|
}
|
||||||
if (widget.AudioUrl) {
|
if (widget.AudioUrl) {
|
||||||
playAudio(widget.AudioUrl, widgetID)
|
await playAudio(widget.AudioUrl, widgetID)
|
||||||
}
|
}
|
||||||
playSpeech(donat.Text)
|
playSpeech(donat.Text)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user