PluginProbe
Extendify / 3.2.1
Extendify v3.2.1
3.2.1 3.2.0 3.1.6 3.1.5 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 3.0.6 3.0.5 3.0.4 trunk 0.1.0 0.10.0 0.10.1 0.10.2 0.11.0 0.11.1 0.2.0 0.3.0 0.3.1 0.4.0 0.5.0 0.6.0 All 127 releases
← All changes | src/HelpCenter/state/ai-chat.js +2 -1 3.1.23.2.1 View file →
@@ -1,4 +1,5 @@
1 +import { safeLocalStorage } from '@shared/state/safe-local-storage';
1 2 import { create } from 'zustand';
2 3 import { createJSONStorage, devtools, persist } from 'zustand/middleware';
3 4
4 5 const initialState = {
@@ -35,7 +36,7 @@
35 36
36 37 export const useAIChatStore = create(
37 38 persist(devtools(state, { name: 'Extendify Chat History' }), {
38 39 name: `extendify-chat-history-${window.extSharedData.siteId}`,
39 - storage: createJSONStorage(() => localStorage),
40 + storage: createJSONStorage(() => safeLocalStorage),
40 41 }),
41 42 );