forked from Mirrors/elk
12 lines
298 B
TypeScript
12 lines
298 B
TypeScript
export default defineNuxtPlugin((/* nuxtApp */) => {
|
|
return {
|
|
provide: {
|
|
scrollToTop: () => {
|
|
// if (typeof force === 'boolean' && force)
|
|
// nuxtApp.$trackScroll.forceScroll()
|
|
|
|
// window.scrollTo({ top: 0, left: 0, behavior: 'smooth' })
|
|
},
|
|
},
|
|
}
|
|
})
|