Skip to content

Commit

Permalink
fixed code format
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarotero committed Dec 11, 2024
1 parent a91b3ce commit 42ff396
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions plugins/metas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,12 @@ export function metas(userOptions?: Options) {

// Color
if (Array.isArray(color)) {
addMeta(document, "name", "theme-color", color.shift()!, undefined, { media: "(prefers-color-scheme: light)" });
addMeta(document, "name", "theme-color", color.shift()!, undefined, { media: "(prefers-color-scheme: dark)" });
addMeta(document, "name", "theme-color", color.shift()!, undefined, {
media: "(prefers-color-scheme: light)",
});
addMeta(document, "name", "theme-color", color.shift()!, undefined, {
media: "(prefers-color-scheme: dark)",
});
} else {
addMeta(document, "name", "theme-color", color);
}
Expand Down

0 comments on commit 42ff396

Please sign in to comment.