Skip to content

Commit

Permalink
adds a nice default color for embeds
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkSuckerberg committed Mar 12, 2024
1 parent df7bd45 commit dc08168
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,9 @@ async function mainPage(
: ''
}
<meta property="theme-color" content="#${imageBlocks.find(block => block.colors)?.colors?.c0}" />
<meta property="theme-color" content="#${
imageBlocks.find(block => block.colors)?.colors?.c0 || '5555aa'
}" />
</head>`;

return new Response(html, {
Expand Down

0 comments on commit dc08168

Please sign in to comment.