mirror of
https://github.com/iv-org/invidious.git
synced 2024-11-22 05:27:21 +00:00
replace tabs to spaces
This commit is contained in:
parent
fafd4d9396
commit
dbb1e3f5d8
@ -171,14 +171,14 @@ if (isMobile()) {
|
|||||||
|
|
||||||
// The share and http source selector element can't be fetched till the players ready.
|
// The share and http source selector element can't be fetched till the players ready.
|
||||||
player.one('playing', function () {
|
player.one('playing', function () {
|
||||||
var share_element = document.getElementsByClassName('vjs-share-control')[0];
|
var share_element = document.getElementsByClassName('vjs-share-control')[0];
|
||||||
operations_bar_element.append(share_element);
|
operations_bar_element.append(share_element);
|
||||||
|
|
||||||
if (video_data.params.quality === 'dash') {
|
if (video_data.params.quality === 'dash') {
|
||||||
var http_source_selector = document.getElementsByClassName('vjs-http-source-selector vjs-menu-button')[0];
|
var http_source_selector = document.getElementsByClassName('vjs-http-source-selector vjs-menu-button')[0];
|
||||||
operations_bar_element.append(http_source_selector);
|
operations_bar_element.append(http_source_selector);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// Enable VR video support
|
// Enable VR video support
|
||||||
|
@ -78,10 +78,10 @@ function update_mode (mode) {
|
|||||||
// If preference for dark mode indicated
|
// If preference for dark mode indicated
|
||||||
set_mode(true);
|
set_mode(true);
|
||||||
}
|
}
|
||||||
else if (mode === 'false' /* for backwards compatibility */ || mode === 'light') {
|
else if (mode === 'false' /* for backwards compatibility */ || mode === 'light') {
|
||||||
// If preference for light mode indicated
|
// If preference for light mode indicated
|
||||||
set_mode(false);
|
set_mode(false);
|
||||||
}
|
}
|
||||||
else if (document.getElementById('dark_mode_pref').textContent === '' && window.matchMedia('(prefers-color-scheme: dark)').matches) {
|
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
|
// 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);
|
set_mode(true);
|
||||||
|
Loading…
Reference in New Issue
Block a user