1
0
Fork 1
mirror of https://github.com/hay-kot/homebox.git synced 2024-12-22 06:46:32 +00:00
homebox/frontend/plugins/scroll.client.ts
Hayden 891d41b75f
feat: new-card-design ()
* card option 1

* UI updates for item card

* fix test error

* fix pagination issues on backend

* add integer support

* remove date from cards

* implement pagination for search page

* resolve search state problems

* other fixes

* fix broken datetime

* attempt to fix scroll behavior
2023-01-01 12:50:48 -09:00

7 lines
197 B
TypeScript

export default defineNuxtPlugin(nuxtApp => {
nuxtApp.hook("page:finish", () => {
console.log(document.body);
document.body.scrollTo({ top: 0 });
console.log("page:finish");
});
});