File tree 1 file changed +3
-3
lines changed
tools/LinkDotNet.Blog.CriticalCSS
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;
4
4
5
5
internal static class CriticalCssGenerator
6
6
{
7
- public static async Task < string > GenerateAsync ( IReadOnlyCollection < string > urls )
7
+ public static async Task < string > GenerateAsync ( IReadOnlyCollection < string > urls )
8
8
{
9
9
using var playwright = await Playwright . CreateAsync ( ) ;
10
10
await using var browser = await playwright . Chromium . LaunchAsync ( ) ;
@@ -41,7 +41,7 @@ public static async Task<string> GenerateAsync(IReadOnlyCollection<string>urls)
41
41
async function fetchExternalStylesheet(url) {
42
42
if (processedUrls.has(url)) return;
43
43
processedUrls.add(url);
44
-
44
+
45
45
try {
46
46
const response = await fetch(url);
47
47
const text = await response.text();
@@ -63,7 +63,7 @@ async function processStyleSheet(sheet) {
63
63
Array.from(externalSheet.cssRules).forEach(processRule);
64
64
}
65
65
}
66
-
66
+
67
67
Array.from(sheet.cssRules).forEach(processRule);
68
68
} catch (e) {
69
69
if (sheet.href) {
You can’t perform that action at this time.
0 commit comments