File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
tools/LinkDotNet.Blog.CriticalCSS Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ namespace LinkDotNet.Blog.CriticalCSS;
44
55internal static class CriticalCssGenerator
66{
7- public static async Task < string > GenerateAsync ( IReadOnlyCollection < string > urls )
7+ public static async Task < string > GenerateAsync ( IReadOnlyCollection < string > urls )
88 {
99 using var playwright = await Playwright . CreateAsync ( ) ;
1010 await using var browser = await playwright . Chromium . LaunchAsync ( ) ;
@@ -41,7 +41,7 @@ public static async Task<string> GenerateAsync(IReadOnlyCollection<string>urls)
4141 async function fetchExternalStylesheet(url) {
4242 if (processedUrls.has(url)) return;
4343 processedUrls.add(url);
44-
44+
4545 try {
4646 const response = await fetch(url);
4747 const text = await response.text();
@@ -63,7 +63,7 @@ async function processStyleSheet(sheet) {
6363 Array.from(externalSheet.cssRules).forEach(processRule);
6464 }
6565 }
66-
66+
6767 Array.from(sheet.cssRules).forEach(processRule);
6868 } catch (e) {
6969 if (sheet.href) {
You can’t perform that action at this time.
0 commit comments