mirror of
https://github.com/iv-org/invidious.git
synced 2025-05-02 06:26:26 -04:00
replace tabs to spaces
This commit is contained in:
parent
fafd4d9396
commit
dbb1e3f5d8
2 changed files with 11 additions and 11 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue