Skip to content

Commit

Permalink
change: use API GW directly without CloudFront
Browse files Browse the repository at this point in the history
  • Loading branch information
mirumirumi committed Nov 25, 2022
1 parent 858ba7e commit 923a602
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/plugins/page-scroll.js
Expand Up @@ -2,19 +2,6 @@

import { defineNuxtPlugin } from "#app"

// export default defineNuxtPlugin((nuxtApp) => {
// nuxtApp.$router.options.scrollBehavior = (to, from, savedPosition) => {
// return new Promise((resolve) => {
// setTimeout(() => {
// resolve({
// left: savedPosition?.left || 0,
// top: savedPosition?.top || 0,
// })
// }, 0)
// })
// }
// })

export default defineNuxtPlugin((nuxtApp) => {
nuxtApp.hook("page:start", async () => { // `page:finish` does not return savedPosition
window.scrollTo({
Expand Down
Binary file modified src/secrets/secret.dev.js.gpg
Binary file not shown.
Binary file modified src/secrets/secret.prd.js.gpg
Binary file not shown.

0 comments on commit 923a602

Please sign in to comment.