chore: hide the tab audio button for now

It clicks in the mix and Edge delivers Windows system audio as silence;
parked until there's time to move capture to an AudioWorklet. The code
stays in place behind TAB_AUDIO_SUPPORTED.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
This commit is contained in:
MoepchiandClaude Opus 5.5 committed 2026-10-03 09:42:54 +00:00
1 parent 4752971f31
commit b84dc0faac
2 files changed
+3 -1

No files matched your search

+3
View File
@@ -492,7 +492,10 @@ function loadFavorites(): Favorite[] {
// Only Chromium hands out tab/system audio via getDisplayMedia; Firefox and
// Safari return video only, so the button would just say "no audio" there.
// userAgentData itself only exists in Chromium-based browsers.
// Switched off for now (2026-10-03): clicks in the mix, and Edge delivers
// Windows system audio as silence. Code stays; flip back once that's solved.
const TAB_AUDIO_SUPPORTED =
false &&
typeof navigator.mediaDevices?.getDisplayMedia === "function" &&
!!(navigator as Navigator & { userAgentData?: { brands: { brand: string }[] } }).userAgentData?.brands.some(
(b) => b.brand === "Chromium"