import{getClientPageDataUrl as n}from"../../utils/url/get-client-page-data-url";import{normalizeRouteSlug as r}from"../../utils/path/normalize-route-slug";async function l(a,e){const t=await globalThis.fetch(a,e);if(t.status===401){const o=n(r(location.pathname));(await globalThis.fetch(o)).status===401&&window.location.reload()}return t}export{l as fetch};
