We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f5c3584 commit 7527472Copy full SHA for 7527472
1 file changed
src/extensions/Autofocus.ts
@@ -40,14 +40,14 @@ export default Extension.create<AutofocusOptions>({
40
}
41
42
const pos = editor.state.selection.$anchor.pos
43
- sessionStorage.setItem('text-lastPos-' + this.options.fileId, String(pos))
+ localStorage.setItem('text-lastPos-' + this.options.fileId, String(pos))
44
},
45
addCommands() {
46
return {
47
autofocus:
48
() =>
49
({ commands }) => {
50
- const pos = sessionStorage.getItem(
+ const pos = localStorage.getItem(
51
'text-lastPos-' + this.options.fileId,
52
)
53
if (pos) {
0 commit comments