VcNarrator: don't narrate twice when using Overlay (#4300)

Fixes #2717
This commit is contained in:
5xk 2026-06-13 14:52:28 -03:00 • committed by GitHub
parent b6516a15c1
commit a72fe61593
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -43,7 +43,8 @@ interface VoiceStateChangeEvent {
// not say the second mute, which would lead you to believe they're unmuted
function speak(text: string) {
if (!text) return;
// Don't narrate in the overlay window, otherwise everything is said twice
if (!text || window.__OVERLAY__) return;
const { volume, rate } = settings.store;