Skip to content

Commit e330066

Browse files
author
Alex Nozdriukhin
committed
fix: amend incorrect querySelector call
1 parent a76eade commit e330066

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/prefetch.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ function linkPrefetchStrategy(url) {
5252
link.onload = resolve;
5353
link.onerror = reject;
5454

55-
(document.head || document.querySelector(`script`.parentNode)).appendChild(link);
55+
(document.head || document.querySelector(`script`).parentNode).appendChild(link);
5656
});
5757
};
5858

0 commit comments

Comments
 (0)