Glainez commited on
Commit
dcae7fb
1 Parent(s): 49294ae

Update select_back_camera.js

Browse files
Files changed (1) hide show
  1. 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('back'));
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 });