Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
linkdotnet committed Dec 5, 2024
1 parent 3989905 commit ea82819
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tools/LinkDotNet.Blog.CriticalCSS/Generator.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
using AngleSharp.Diffing.Extensions;
using Microsoft.Playwright;

namespace LinkDotNet.Blog.CriticalCSS;
Expand Down Expand Up @@ -106,10 +107,7 @@ function processRule(rule) {
}
""");

foreach (var css in usedCss)
{
criticalCss.Add(css);
}
criticalCss.AddRange(usedCss);
}
}

Expand Down

0 comments on commit ea82819

Please sign in to comment.