Jacky Zhao
2023-02-05 7df2bb6f5e681ce3329e4faf6ac6cbcda7a3f14e
assets/js/router.js
@@ -3,7 +3,7 @@
  navigate,
  prefetch,
  router,
} from "https://unpkg.com/million@1.11.3/dist/router.mjs"
} from "https://unpkg.com/million@1.11.5/dist/router.mjs"
export const attachSPARouting = (init, rerender) => {
  // Attach SPA functions to the global Million namespace
@@ -15,7 +15,6 @@
  }
  const render = () => requestAnimationFrame(rerender)
  window.addEventListener("DOMContentLoaded", () => {
    apply((doc) => init(doc))
    init()