mirror of
				https://github.com/immich-app/immich.git
				synced 2025-11-04 03:27:09 -05:00 
			
		
		
		
	fix(web): upgrade old style theme preference (#12775)
This commit is contained in:
		
							parent
							
								
									0ceb773865
								
							
						
					
					
						commit
						65dcf9b655
					
				@ -74,7 +74,7 @@
 | 
			
		||||
      if (!theme) {
 | 
			
		||||
        theme = { value: 'light', system: true };
 | 
			
		||||
      } else if (theme === 'dark' || theme === 'light') {
 | 
			
		||||
        theme = { value: item, system: false };
 | 
			
		||||
        theme = { value: theme, system: false };
 | 
			
		||||
        localStorage.setItem(colorThemeKeyName, JSON.stringify(theme));
 | 
			
		||||
      } else {
 | 
			
		||||
        theme = JSON.parse(theme);
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user