Generic Commit; Most likely a fix or small feature

This commit is contained in:
Darius
2025-11-22 01:33:15 +01:00
parent c176ed7a8d
commit 284244320b

View File

@@ -969,11 +969,6 @@ body {
await videoTrack.applyConstraints({ await videoTrack.applyConstraints({
advanced: [{ torch: torchEnabled } as any] advanced: [{ torch: torchEnabled } as any]
}); });
const torchBtn = document.getElementById('toggle-torch-btn');
if (torchBtn) {
torchBtn.textContent = torchEnabled ? 'Torch On' : 'Torch Off';
}
} catch (err) { } catch (err) {
console.error('Error toggling torch:', err); console.error('Error toggling torch:', err);
showError('Could not toggle torch. Feature may not be supported.'); showError('Could not toggle torch. Feature may not be supported.');