| @@ -16,9 +16,9 @@ | ||
| 16 | 16 | detachKeyboardUndo, |
| 17 | 17 | } from './lib/keyboard-undo'; |
| 18 | 18 | import { fetchLinkSuggestions } from './lib/link-suggestions'; |
| 19 | 19 | // Side-effect import: subscribes html.extendify-quick-edit-on before first paint. |
| 20 | -import { useEditModeStore } from './state/edit-mode'; | |
| 20 | +import { STORAGE_KEY, useEditModeStore } from './state/edit-mode'; | |
| 21 | 21 | import { useQuickEditStore } from './state/store'; |
| 22 | 22 | |
| 23 | 23 | import './quick-edit.css'; |
| 24 | 24 | |
| @@ -33,11 +33,9 @@ | ||
| 33 | 33 | if (isEmbedded()) return; |
| 34 | 34 | if (!window.extQuickEditData?.defaultOn) return; |
| 35 | 35 | let persisted; |
| 36 | 36 | try { |
| 37 | - persisted = JSON.parse( | |
| 38 | - localStorage.getItem('extendify-quick-edit-mode') ?? 'null', | |
| 39 | - ); | |
| 37 | + persisted = JSON.parse(localStorage.getItem(STORAGE_KEY) ?? 'null'); | |
| 40 | 38 | } catch { |
| 41 | 39 | persisted = null; |
| 42 | 40 | } |
| 43 | 41 | if (persisted) return; |