mirror of
				https://github.com/iv-org/invidious.git
				synced 2025-11-03 22:21:55 +00:00 
			
		
		
		
	Handle auto theme correctly with the manual toggle (#3521)
This commit is contained in:
		@@ -22,9 +22,11 @@ function setTheme(theme) {
 | 
			
		||||
    if (theme === THEME_DARK) {
 | 
			
		||||
        toggle_theme.children[0].className = 'icon ion-ios-sunny';
 | 
			
		||||
        document.body.className = 'dark-theme';
 | 
			
		||||
    } else {
 | 
			
		||||
    } else if (theme === THEME_LIGHT) {
 | 
			
		||||
        toggle_theme.children[0].className = 'icon ion-ios-moon';
 | 
			
		||||
        document.body.className = 'light-theme';
 | 
			
		||||
    } else {
 | 
			
		||||
        document.body.className = 'no-theme';
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user