mirror of
https://github.com/open-webui/open-webui
synced 2025-01-18 00:30:51 +00:00
fix
This commit is contained in:
parent
8a99eaa68f
commit
7a1fecbdb3
@ -766,7 +766,11 @@
|
||||
let stream = await navigator.mediaDevices.getUserMedia({ audio: true });
|
||||
// If the user grants the permission, proceed to show the call overlay
|
||||
|
||||
stream.getTracks().forEach((track) => track.stop());
|
||||
if (stream) {
|
||||
const tracks = stream.getTracks();
|
||||
tracks.forEach((track) => track.stop());
|
||||
}
|
||||
|
||||
stream = null;
|
||||
|
||||
showCallOverlay.set(true);
|
||||
|
Loading…
Reference in New Issue
Block a user