Skip to content

Commit

Permalink
fix(core/seo): doc reference error
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoscaceres authored and Marcos Cáceres committed Aug 16, 2017
1 parent 8ae67f4 commit fc0dc08
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/seo.js
Expand Up @@ -25,6 +25,7 @@ export async function run(conf, doc, cb) {
function makeDescriptionInserter(firstParagraph) {
return () => {
// Normalize whitespace: trim, remove new lines, tabs, etc.
const doc = firstParagraph.ownerDocument;
const content = firstParagraph.textContent.replace(/\s+/, " ").trim();
const metaElem = doc.createElement("meta");
metaElem.name = "description";
Expand Down

0 comments on commit fc0dc08

Please sign in to comment.