forked from Mirrors/elk
chore: use account instead follow
This commit is contained in:
parent
2531bd8f45
commit
086a2940f7
1 changed files with 2 additions and 2 deletions
|
@ -4,7 +4,7 @@ import { STORAGE_KEY_LAST_SCROLL_POSITION } from '~/constants'
|
|||
|
||||
interface RestoreScroll {
|
||||
id: string
|
||||
type: 'status' | 'follow'
|
||||
type: 'status' | 'account'
|
||||
position: number
|
||||
}
|
||||
|
||||
|
@ -33,7 +33,7 @@ export default defineNuxtPlugin(() => {
|
|||
}
|
||||
},
|
||||
rememberAccountPosition: (account: string) => {
|
||||
lastStatus.value[useRoute().fullPath] = { id: account, type: 'follow', position: window.scrollY }
|
||||
lastStatus.value[useRoute().fullPath] = { id: account, type: 'account', position: window.scrollY }
|
||||
},
|
||||
rememberStatusPosition: (status: mastodon.v1.Status) => {
|
||||
lastStatus.value[useRoute().fullPath] = { id: status.id, type: 'status', position: window.scrollY }
|
||||
|
|
Loading…
Reference in a new issue