Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3339856
D9552.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
893 B
Referenced Files
None
Subscribers
None
D9552.diff
View Options
diff --git a/web/redux/persist.js b/web/redux/persist.js
--- a/web/redux/persist.js
+++ b/web/redux/persist.js
@@ -23,6 +23,7 @@
defaultConnectionInfo,
type ConnectionInfo,
} from 'lib/types/socket-types.js';
+import { defaultGlobalThemeInfo } from 'lib/types/theme-types.js';
import { parseCookies } from 'lib/utils/cookie-utils.js';
import { isDev } from 'lib/utils/dev-utils.js';
import {
@@ -163,6 +164,10 @@
},
};
},
+ [8]: async state => ({
+ ...state,
+ globalThemeInfo: defaultGlobalThemeInfo,
+ }),
};
const persistWhitelist = [
@@ -172,6 +177,7 @@
'notifPermissionAlertInfo',
'commServicesAccessToken',
'keyserverStore',
+ 'globalThemeInfo',
];
const rootKey = 'root';
@@ -275,7 +281,7 @@
{ debug: isDev },
migrateStorageToSQLite,
): any),
- version: 7,
+ version: 8,
transforms: [keyserverStoreTransform],
};
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 22, 8:48 PM (18 h, 54 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2564868
Default Alt Text
D9552.diff (893 B)
Attached To
Mode
D9552: [web] introduce redux persist migration for globalThemeInfo
Attached
Detach File
Event Timeline
Log In to Comment