mirror of
https://github.com/iv-org/invidious.git
synced 2025-05-02 06:26:26 -04:00
single quotes
This commit is contained in:
parent
577a2356a0
commit
7940e91cbe
3 changed files with 40 additions and 40 deletions
|
@ -3,7 +3,7 @@ var toggle_theme = document.getElementById('toggle_theme');
|
|||
toggle_theme.href = 'javascript:void(0);';
|
||||
|
||||
toggle_theme.addEventListener('click', function () {
|
||||
var dark_mode = document.body.classList.contains("light-theme");
|
||||
var dark_mode = document.body.classList.contains('light-theme');
|
||||
|
||||
var url = '/toggle_theme?redirect=false';
|
||||
var xhr = new XMLHttpRequest();
|
||||
|
@ -49,9 +49,9 @@ function scheme_switch (e) {
|
|||
}
|
||||
} catch {}
|
||||
if (e.matches) {
|
||||
if (e.media.includes("dark")) {
|
||||
if (e.media.includes('dark')) {
|
||||
set_mode(true);
|
||||
} else if (e.media.includes("light")) {
|
||||
} else if (e.media.includes('light')) {
|
||||
set_mode(false);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue