File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed
Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -144,14 +144,6 @@ <h1>Customized Default UI</h1>
144144 optionsUl . appendChild ( li ) ;
145145 } ) ;
146146 const camOptions = document . querySelectorAll ( "#ul_options_camera span" ) ;
147- camOptions . forEach ( span => {
148-
149- if ( span . id === currentCamera . deviceId ) {
150-
151- } else {
152- span . classList . remove ( "selected" ) ;
153- }
154- } ) ;
155147 }
156148 // resolution selector renderer
157149 async function renderResolutionSelector ( ) {
@@ -237,8 +229,12 @@ <h1>Customized Default UI</h1>
237229 }
238230 // camera's styles mask show or not
239231 function toggleMaskView ( ) {
232+ let dceLoading = document . getElementById ( 'dce-loading' ) ;
240233 let dceMask = document . getElementById ( 'dce-mask' ) ;
234+ let dceScanlight = document . getElementById ( 'dce-scanlight' ) ;
235+ dceLoading . style . display = dceLoading . style . display === "none" ? "inline-block" : "none"
241236 dceMask . hidden = ! dceMask . hidden ;
237+ dceScanlight . hidden = ! dceScanlight . hidden ;
242238 }
243239 // click anywhere outside the options to collapse the options
244240 function clickToHiddenOptions ( e ) {
You can’t perform that action at this time.
0 commit comments