File tree Expand file tree Collapse file tree 2 files changed +12
-12
lines changed Expand file tree Collapse file tree 2 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -171,14 +171,14 @@ if (isMobile()) {
171171
172172 // The share and http source selector element can't be fetched till the players ready.
173173 player . one ( 'playing' , function ( ) {
174- var share_element = document . getElementsByClassName ( 'vjs-share-control' ) [ 0 ] ;
175- operations_bar_element . append ( share_element ) ;
176-
177- if ( video_data . params . quality === 'dash' ) {
178- var http_source_selector = document . getElementsByClassName ( 'vjs-http-source-selector vjs-menu-button' ) [ 0 ] ;
179- operations_bar_element . append ( http_source_selector ) ;
180- }
181- } ) ;
174+ var share_element = document . getElementsByClassName ( 'vjs-share-control' ) [ 0 ] ;
175+ operations_bar_element . append ( share_element ) ;
176+
177+ if ( video_data . params . quality === 'dash' ) {
178+ var http_source_selector = document . getElementsByClassName ( 'vjs-http-source-selector vjs-menu-button' ) [ 0 ] ;
179+ operations_bar_element . append ( http_source_selector ) ;
180+ }
181+ } ) ;
182182}
183183
184184// Enable VR video support
Original file line number Diff line number Diff line change @@ -78,10 +78,10 @@ function update_mode (mode) {
7878 // If preference for dark mode indicated
7979 set_mode ( true ) ;
8080 }
81- else if ( mode === 'false' /* for backwards compatibility */ || mode === 'light' ) {
82- // If preference for light mode indicated
83- set_mode ( false ) ;
84- }
81+ else if ( mode === 'false' /* for backwards compatibility */ || mode === 'light' ) {
82+ // If preference for light mode indicated
83+ set_mode ( false ) ;
84+ }
8585 else if ( document . getElementById ( 'dark_mode_pref' ) . textContent === '' && window . matchMedia ( '(prefers-color-scheme: dark)' ) . matches ) {
8686 // If no preference indicated here and no preference indicated on the preferences page (backend), but the browser tells us that the operating system has a dark theme
8787 set_mode ( true ) ;
You can’t perform that action at this time.
0 commit comments