Generic Commit; Most likely a fix or small feature
This commit is contained in:
@@ -620,11 +620,11 @@ body {
|
||||
<div style="display: flex; gap: 0.5rem;">
|
||||
<button id="toggle-torch-btn" class="btn btn-green" style="flex: 1;">
|
||||
<svg
|
||||
class="icon-sm"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
viewBox="0 0 24 24"
|
||||
>
|
||||
class="icon-sm"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
viewBox="0 0 24 24"
|
||||
>
|
||||
<path
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
@@ -969,11 +969,6 @@ body {
|
||||
await videoTrack.applyConstraints({
|
||||
advanced: [{ torch: torchEnabled } as any]
|
||||
});
|
||||
|
||||
const torchBtn = document.getElementById('toggle-torch-btn');
|
||||
if (torchBtn) {
|
||||
torchBtn.textContent = torchEnabled ? 'Torch On' : 'Torch Off';
|
||||
}
|
||||
} catch (err) {
|
||||
console.error('Error toggling torch:', err);
|
||||
showError('Could not toggle torch. Feature may not be supported.');
|
||||
|
||||
Reference in New Issue
Block a user