mirror of
https://github.com/danog/inline-critical.git
synced 2024-11-26 20:14:41 +01:00
Fix typo.
This commit is contained in:
parent
cfb890169e
commit
13c65c8602
4
index.js
4
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
|
||||
|
Loading…
Reference in New Issue
Block a user