diff --git a/packages/integrations/prefetch/src/client.ts b/packages/integrations/prefetch/src/client.ts index 2881085b0..40a226cc5 100644 --- a/packages/integrations/prefetch/src/client.ts +++ b/packages/integrations/prefetch/src/client.ts @@ -15,7 +15,7 @@ function shouldPreload({ href }: { href: string }) { window.location.pathname !== url.pathname && !preloaded.has(href) ); - } catch { } + } catch {} return false; } @@ -61,7 +61,7 @@ async function preloadHref(link: HTMLAnchorElement) { return fetch(el.href); }) ); - } catch { } + } catch {} } export interface PrefetchOptions { @@ -115,8 +115,7 @@ export default function prefetch({ }); requestIdleCallback(() => { - const links = [...document.querySelectorAll(selector)] - .filter(shouldPreload); + const links = [...document.querySelectorAll(selector)].filter(shouldPreload); links.forEach(observe); }); }