Skip to content

Commit

Permalink
bump dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
bezoerb committed Mar 25, 2024
1 parent b5a7a4d commit a499d8d
Show file tree
Hide file tree
Showing 6 changed files with 2,368 additions and 2,335 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export function inline(html, styles, options) {

if (Array.isArray(o.replaceStylesheets) && links.length > 0) {
// Detect links to be removed
const [ref] = links;
const [reference] = links;
const removable = [...document.querySelectorAll('link[rel="stylesheet"], link[rel="preload"][as="style"]')].filter(
(link) => {
// Filter ignored links
Expand All @@ -112,7 +112,7 @@ export function inline(html, styles, options) {

link.setAttribute('rel', 'stylesheet');
link.setAttribute('href', href);
ref.before(link);
reference.before(link);

if (noscriptFallback) {
document.addNoscript(link);
Expand Down
Loading

0 comments on commit a499d8d

Please sign in to comment.