Page MenuHomePhorge

D9699.1768916562.diff
No OneTemporary

Size
559 B
Referenced Files
None
Subscribers
None

D9699.1768916562.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
Tue, Jan 20, 1:42 PM (14 h, 44 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5961031
Default Alt Text
D9699.1768916562.diff (559 B)

Event Timeline