diff options
author | H Lohaus <hlohaus@users.noreply.github.com> | 2024-04-09 20:20:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-09 20:20:24 +0200 |
commit | 0bb08e15a7037c469781d625288fb371e74adf33 (patch) | |
tree | aaefa19be7ff6d41a73deb3d41c7c3a9181ebc28 /g4f/gui/client/static/js | |
parent | Merge pull request #1807 from hlohaus/satur (diff) | |
parent | Improve styling mobile (diff) | |
download | gpt4free-0bb08e15a7037c469781d625288fb371e74adf33.tar gpt4free-0bb08e15a7037c469781d625288fb371e74adf33.tar.gz gpt4free-0bb08e15a7037c469781d625288fb371e74adf33.tar.bz2 gpt4free-0bb08e15a7037c469781d625288fb371e74adf33.tar.lz gpt4free-0bb08e15a7037c469781d625288fb371e74adf33.tar.xz gpt4free-0bb08e15a7037c469781d625288fb371e74adf33.tar.zst gpt4free-0bb08e15a7037c469781d625288fb371e74adf33.zip |
Diffstat (limited to 'g4f/gui/client/static/js')
-rw-r--r-- | g4f/gui/client/static/js/chat.v1.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/g4f/gui/client/static/js/chat.v1.js b/g4f/gui/client/static/js/chat.v1.js index 02437bf7..5036a93b 100644 --- a/g4f/gui/client/static/js/chat.v1.js +++ b/g4f/gui/client/static/js/chat.v1.js @@ -96,10 +96,12 @@ const register_message_buttons = async () => { el.dataset.click = "true"; el.addEventListener("click", async () => { if ("active" in el.classList || window.doSpeech) { + el.classList.add("blink") stopped = true; return; } if (stopped) { + el.classList.remove("blink") stopped = false; return; } @@ -125,7 +127,7 @@ const register_message_buttons = async () => { sound.controls = 'controls'; sound.src = url; sound.type = 'audio/wav'; - if (ended) { + if (ended && !stopped) { sound.autoplay = true; } sound.onended = function() { |