Spaces:
Sleeping
Sleeping
Update select_back_camera.js
Browse files- select_back_camera.js +1 -1
select_back_camera.js
CHANGED
@@ -6,7 +6,7 @@ window.addEventListener('load', (event) => {
|
|
6 |
clearInterval(gradioAppLoaded);
|
7 |
webcamButton.click();
|
8 |
setTimeout(() => {
|
9 |
-
const backCameraOption = Array.from(document.querySelectorAll('select option')).find(option => option.text.toLowerCase().includes('
|
10 |
if (backCameraOption) {
|
11 |
backCameraOption.selected = true;
|
12 |
const event = new Event('change', { bubbles: true });
|
|
|
6 |
clearInterval(gradioAppLoaded);
|
7 |
webcamButton.click();
|
8 |
setTimeout(() => {
|
9 |
+
const backCameraOption = Array.from(document.querySelectorAll('select option')).find(option => option.text.toLowerCase().includes('0'));
|
10 |
if (backCameraOption) {
|
11 |
backCameraOption.selected = true;
|
12 |
const event = new Event('change', { bubbles: true });
|