diff --git a/src/lib/insert-links-into-head.js b/src/lib/insert-links-into-head.js index 9db83fa..abc4cc8 100644 --- a/src/lib/insert-links-into-head.js +++ b/src/lib/insert-links-into-head.js @@ -30,7 +30,7 @@ function insertLinksIntoHead({html, links=[]}) { return html.replace('', `${links.join('')}\n`); } - throw new Error(`The HTML provided did not contain a or a :\n\n${html}`); + return links.join('') + html; } module.exports = insertLinksIntoHead;