We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 83c8049 + 2615c78 commit 2ab3ccdCopy full SHA for 2ab3ccd
app/HoverPrefetch/HoverPrefetch.astro
@@ -16,7 +16,7 @@ if (typeof props.max !== 'number') {
16
if (e.target.tagName === 'A' && prefetchList.length < max) {
17
const url = e.target.getAttribute('href');
18
19
- if (url.startsWith('/' && url !== window.location.pathname )) {
+ if (url.startsWith('/') && url !== window.location.pathname) {
20
if (prefetchList.includes(url) === false) {
21
// console.log(`prefetching url ${url}`);
22
const link = document.createElement('link');
0 commit comments