Skip to content

Commit dbb1e3f

Browse files
author
meow
committed
replace tabs to spaces
1 parent fafd4d9 commit dbb1e3f

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

assets/js/player.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff 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

assets/js/themes.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)