Generic Commit; Most likely a fix or small feature
This commit is contained in:
@@ -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.');
|
||||||
|
|||||||
Reference in New Issue
Block a user