From 7504a2e1e480cdad0a9cd7719b98201117cb81a1 Mon Sep 17 00:00:00 2001 From: Jonathan Gamble <101470903+schlawg@users.noreply.github.com> Date: Sun, 17 Nov 2024 09:32:39 -0600 Subject: [PATCH] remove remnants of debug code --- ui/voice/src/voice.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ui/voice/src/voice.ts b/ui/voice/src/voice.ts index 544f333da9da..de74f19e7d14 100644 --- a/ui/voice/src/voice.ts +++ b/ui/voice/src/voice.ts @@ -59,11 +59,9 @@ export function makeVoice(opts: { document.addEventListener('keydown', (e: KeyboardEvent) => { if (e.key !== 'Shift' || shiftDown) return; - const start = mic.isListening || pushTalk(); shiftDown = true; - mic.stop(); window.speechSynthesis.cancel(); - if (start) mic.start(); + if (pushTalk()) mic.start(); clearTimeout(keyupTimeout); });