Skip to content

Commit

Permalink
feat(index.mjs): normalize URLs being prefetched (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
addyosmani committed Dec 14, 2018
1 parent 6924af0 commit 1da37f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const observer = new IntersectionObserver(entries => {
*/
function prefetcher(url) {
toPrefetch.delete(url);
prefetch(url, observer.priority);
prefetch(new URL(url).toString(), observer.priority);
}

/**
Expand Down

0 comments on commit 1da37f4

Please sign in to comment.