Skip to content

Commit

Permalink
fix: amend incorrect querySelector call
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Nozdriukhin committed Dec 11, 2018
1 parent a76eade commit e330066
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/prefetch.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function linkPrefetchStrategy(url) {
link.onload = resolve;
link.onerror = reject;

(document.head || document.querySelector(`script`.parentNode)).appendChild(link);
(document.head || document.querySelector(`script`).parentNode).appendChild(link);
});
};

Expand Down

0 comments on commit e330066

Please sign in to comment.