mirror of
https://github.com/danog/inline-critical.git
synced 2024-11-30 04:29:07 +01:00
fix: removed silly '> 0' boolean check (#266)
This commit is contained in:
parent
13c65c8602
commit
90ddeaaf83
2
index.js
2
index.js
@ -90,7 +90,7 @@ function inline(html, styles, options) {
|
||||
}
|
||||
}
|
||||
|
||||
if (Array.isArray(o.replaceStylesheets) > 0 && links.length > 0) {
|
||||
if (Array.isArray(o.replaceStylesheets) && links.length > 0) {
|
||||
// Detect links to be removed
|
||||
const [ref] = links;
|
||||
const removable = [...document.querySelectorAll('link[rel="stylesheet"], link[rel="preload"][as="style"]')].filter(
|
||||
|
Loading…
Reference in New Issue
Block a user