Skip to content

Commit

Permalink
replace tabs to spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
meow committed Apr 27, 2022
1 parent fafd4d9 commit dbb1e3f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
16 changes: 8 additions & 8 deletions assets/js/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,14 +171,14 @@ if (isMobile()) {

// The share and http source selector element can't be fetched till the players ready.
player.one('playing', function () {
var share_element = document.getElementsByClassName('vjs-share-control')[0];
operations_bar_element.append(share_element);

if (video_data.params.quality === 'dash') {
var http_source_selector = document.getElementsByClassName('vjs-http-source-selector vjs-menu-button')[0];
operations_bar_element.append(http_source_selector);
}
});
var share_element = document.getElementsByClassName('vjs-share-control')[0];
operations_bar_element.append(share_element);

if (video_data.params.quality === 'dash') {
var http_source_selector = document.getElementsByClassName('vjs-http-source-selector vjs-menu-button')[0];
operations_bar_element.append(http_source_selector);
}
});
}

// Enable VR video support
Expand Down
8 changes: 4 additions & 4 deletions assets/js/themes.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,10 @@ function update_mode (mode) {
// If preference for dark mode indicated
set_mode(true);
}
else if (mode === 'false' /* for backwards compatibility */ || mode === 'light') {
// If preference for light mode indicated
set_mode(false);
}
else if (mode === 'false' /* for backwards compatibility */ || mode === 'light') {
// If preference for light mode indicated
set_mode(false);
}
else if (document.getElementById('dark_mode_pref').textContent === '' && window.matchMedia('(prefers-color-scheme: dark)').matches) {
// 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
set_mode(true);
Expand Down

0 comments on commit dbb1e3f

Please sign in to comment.