Page MenuHomePhabricator

D9699.diff
No OneTemporary

D9699.diff

diff --git a/lib/hooks/theme.js b/lib/hooks/theme.js
--- a/lib/hooks/theme.js
+++ b/lib/hooks/theme.js
@@ -48,12 +48,10 @@
if (themePreference === globalThemeInfo.preference) {
return;
}
-
- let theme = themePreference;
- if (themePreference === 'system') {
- theme = globalThemeInfo.systemTheme;
- }
-
+ const theme =
+ themePreference === 'system'
+ ? globalThemeInfo.systemTheme
+ : themePreference;
dispatch({
type: updateThemeInfoActionType,
payload: {

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 9, 12:50 AM (17 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2447122
Default Alt Text
D9699.diff (559 B)

Event Timeline