PluginProbe
Extendify / trunk
Extendify vtrunk
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/QuickEdit/quick-edit.jsx +2 -4 3.1.4 → trunk View file →
@@ -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;