Skip to content

Commit

Permalink
simpler join
Browse files Browse the repository at this point in the history
  • Loading branch information
Rishi Raj Jain committed Jul 29, 2024
1 parent 98f194c commit 0e9282a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .astro/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"_variables": {
"lastUpdateCheck": 1722276947053
}
}
2 changes: 1 addition & 1 deletion packages/astro-font/AstroFont.astro
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ const styles = Promise.all([...resolvedConfig.map(createBaseCSS), ...resolvedCon
---

{preloads.flat().map((content) => <link as="font" crossorigin rel="preload" href={content} type={getPreloadType(content)} />)}
{styles.then((res) => <style set:html={res.flat().reduce((total, content) => total ? `${total}\n${content}` : content, '')} is:inline />).catch(console.log)}
{styles.then((res) => <style set:html={res.flat().join(' ')} is:inline />).catch(console.log)}

0 comments on commit 0e9282a

Please sign in to comment.