()
| 9 | }; |
| 10 | |
| 11 | export const getConfigCache = () => { |
| 12 | if (typeof localStorage !== "undefined") { |
| 13 | const oldConfig = localStorage.getItem(CHAT_CONFIG_KEY); |
| 14 | if (oldConfig) { |
| 15 | return JSON.parse(oldConfig); |
| 16 | } |
| 17 | return null; |
| 18 | } |
| 19 | return null; |
| 20 | }; |