From 086a2940f7fbf2529b5b6deeabcfc73d6b73053d Mon Sep 17 00:00:00 2001 From: userquin Date: Sun, 8 Jan 2023 18:47:14 +0100 Subject: [PATCH] chore: use account instead follow --- plugins/remember-scroll-position.client.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/remember-scroll-position.client.ts b/plugins/remember-scroll-position.client.ts index ef361465..8eaa0a6e 100644 --- a/plugins/remember-scroll-position.client.ts +++ b/plugins/remember-scroll-position.client.ts @@ -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 }