Jacky Zhao
2023-08-21 4e42d52e166dcc3c62775cb3bf86c209d098c158
quartz/components/scripts/spa.inline.ts
@@ -12,9 +12,6 @@
  try {
    const url = new URL(href)
    if (window.location.origin === url.origin) {
      if (url.pathname === window.location.pathname) {
        return !url.hash
      }
      return true
    }
  } catch (e) {}
@@ -94,7 +91,6 @@
    window.addEventListener("click", async (event) => {
      const { url } = getOpts(event) ?? {}
      if (!url) return
      if (url.pathname === window.location.pathname) return
      event.preventDefault()
      try {
        navigate(url, false)