mirror of
https://github.com/open-webui/open-webui
synced 2024-11-16 21:42:58 +00:00
refac
This commit is contained in:
parent
90dadf0bec
commit
1fefafb254
@ -935,7 +935,7 @@
|
|||||||
}
|
}
|
||||||
// check if user has access to getUserMedia
|
// check if user has access to getUserMedia
|
||||||
try {
|
try {
|
||||||
await navigator.mediaDevices.getUserMedia({ audio: true, video: true });
|
await navigator.mediaDevices.getUserMedia({ audio: true });
|
||||||
// If the user grants the permission, proceed to show the call overlay
|
// If the user grants the permission, proceed to show the call overlay
|
||||||
|
|
||||||
showCallOverlay.set(true);
|
showCallOverlay.set(true);
|
||||||
|
@ -626,7 +626,8 @@
|
|||||||
<button
|
<button
|
||||||
class=" p-3 rounded-full bg-gray-50 dark:bg-gray-900"
|
class=" p-3 rounded-full bg-gray-50 dark:bg-gray-900"
|
||||||
type="button"
|
type="button"
|
||||||
on:click={() => {
|
on:click={async () => {
|
||||||
|
await navigator.mediaDevices.getUserMedia({ video: true });
|
||||||
startCamera();
|
startCamera();
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
Loading…
Reference in New Issue
Block a user