Skip to content
This repository has been archived by the owner on Sep 27, 2024. It is now read-only.

Commit

Permalink
fix(hook): update logo:click hook
Browse files Browse the repository at this point in the history
  • Loading branch information
wtfluckey committed Nov 15, 2023
1 parent a7a5d48 commit bc2beca
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion components/common/CommonPaginator.vue
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function percolateStatus(status) {
addStatus(status)
}
nuxtApp.hook('elk-logo:click', () => {
nuxtApp.hook('moz-logo:click', () => {
update()
nuxtApp.$scrollToTop()
})
Expand Down
2 changes: 1 addition & 1 deletion components/nav/NavTitle.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const back = ref<any>('')
const nuxtApp = useNuxtApp()
function onClickLogo() {
nuxtApp.hooks.callHook('elk-logo:click')
nuxtApp.hooks.callHook('moz-logo:click')
}
onMounted(() => {
Expand Down
2 changes: 1 addition & 1 deletion nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ declare global {

declare module '#app' {
interface RuntimeNuxtHooks {
'elk-logo:click': () => void
'moz-logo:click': () => void
}
}

Expand Down

0 comments on commit bc2beca

Please sign in to comment.