소스 검색

refac: code style

Danny Liu 1 년 전
부모
커밋
cf44209730
1개의 변경된 파일1개의 추가작업 그리고 5개의 파일을 삭제
  1. 1 5
      src/lib/components/chat/Settings/General.svelte

+ 1 - 5
src/lib/components/chat/Settings/General.svelte

@@ -91,11 +91,7 @@
 	});
 
 	const applyTheme = (_theme: string) => {
-		let themeToApply = _theme;
-
-		if (themeToApply.includes('oled')) {
-			themeToApply = 'dark';
-		}
+		let themeToApply = _theme === 'oled-dark' ? 'dark' : _theme;
 
 		if (_theme === 'system') {
 			themeToApply = window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light';