diff --git a/components/account/AccountCard.vue b/components/account/AccountCard.vue
index 7fb5bac6..f2118fdd 100644
--- a/components/account/AccountCard.vue
+++ b/components/account/AccountCard.vue
@@ -17,6 +17,7 @@ cacheAccount(account)
shrink
overflow-hidden
:to="getAccountRoute(account)"
+ @click="$rememberAccountPosition(getAccountRoute(account).fullPath)"
/>
diff --git a/components/notification/NotificationCard.vue b/components/notification/NotificationCard.vue
index 14e8a74a..d902a301 100644
--- a/components/notification/NotificationCard.vue
+++ b/components/notification/NotificationCard.vue
@@ -4,17 +4,15 @@ import type { mastodon } from 'masto'
const { notification } = defineProps<{
notification: mastodon.v1.Notification
}>()
-
-const nuxt = useNuxtApp()
-function click() {
- nuxt.$rememberAccountPosition(getAccountRoute(notification.account).fullPath)
-}
-
+
getStatusRoute(status))
const el = ref()
const router = useRouter()
+const nuxtApp = useNuxtApp()
function onclick(evt: MouseEvent | KeyboardEvent) {
const path = evt.composedPath() as HTMLElement[]
@@ -56,7 +57,7 @@ function go(evt: MouseEvent | KeyboardEvent) {
window.open(statusRoute.href)
}
else {
- useNuxtApp().$rememberStatusPosition(status)
+ nuxtApp.$rememberStatusPosition(status)
cacheStatus(status)
router.push(statusRoute)
}