From daa9b9d097bdbd20e78c9931100e8f29b6861f3d Mon Sep 17 00:00:00 2001 From: mm Date: Wed, 30 Oct 2024 16:25:25 +0500 Subject: [PATCH] dev --- internal/model/widget-templates.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/model/widget-templates.go b/internal/model/widget-templates.go index 6b939bf..fef1b7e 100644 --- a/internal/model/widget-templates.go +++ b/internal/model/widget-templates.go @@ -129,7 +129,7 @@ function playSpeech(text) { ) } -function playSpeechAfterAudio(text) { +function playSpeechAfterAudio(text, widgetID) { playAudio(widget.AudioUrl, widgetID, () => playSpeech(text)); } @@ -175,7 +175,7 @@ async function widgetView() { addText(donat.Text + " " + donat.Amount) if (widget.AudioUrl) { - playSpeechAfterAudio(donat.Text); + playSpeechAfterAudio(donat.Text, widgetID); } else { playSpeech(donat.Text); // Если нет аудио, просто сразу играет речь }