From 13c65c8602b8986b38bcb3721c0424d50aa4e187 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Wed, 13 Nov 2019 15:58:05 +0200 Subject: [PATCH] Fix typo. --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 385a11b..d038614 100644 --- a/index.js +++ b/index.js @@ -61,10 +61,10 @@ function inline(html, styles, options) { const document = new Dom(html, o); const inlineStyles = document.getInlineStyles(); - const extarnalStyles = document.getExternalStyles(); + const externalStyles = document.getExternalStyles(); const missingStyles = extractCss(styles, ...inlineStyles); - const links = extarnalStyles.filter(link => { + const links = externalStyles.filter(link => { // Only take stylesheets const stylesheet = link.getAttribute('rel') === 'stylesheet'; // Filter ignored links