mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-17 08:35:21 +03:00
remove check
This commit is contained in:
parent
f66fdbb0cc
commit
3f053c03a1
@ -437,12 +437,7 @@ export default function LiveCameraView({
|
|||||||
onClick={() => {
|
onClick={() => {
|
||||||
setMic(!mic);
|
setMic(!mic);
|
||||||
// Turn on audio when enabling the mic if audio is currently off
|
// Turn on audio when enabling the mic if audio is currently off
|
||||||
if (
|
if (!mic && !audio) {
|
||||||
!mic &&
|
|
||||||
!audio &&
|
|
||||||
supportsAudioOutput &&
|
|
||||||
preferredLiveMode !== "jsmpeg"
|
|
||||||
) {
|
|
||||||
setAudio(true);
|
setAudio(true);
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user