diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2022-12-06 17:13:33 -0400 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2022-12-06 17:14:03 -0400 |
commit | d0059cc2743e785605bb7b34553dd2def528ab5c (patch) | |
tree | d5d53cd6943d2a4d429e1580c08b11687597324e /src | |
parent | 431c3b636bcbd9cd46c5dd90ca0f818a4ea50e1f (diff) |
always use colors.dark for theme-color
Diffstat (limited to 'src')
-rwxr-xr-x | src/upd8.js | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/src/upd8.js b/src/upd8.js index 38a2e87d..518e5f1a 100755 --- a/src/upd8.js +++ b/src/upd8.js @@ -1235,21 +1235,11 @@ writePage.html = (pageInfo, { socialEmbed.image && html.tag('meta', {property: 'og:image', content: socialEmbed.image}), - ...html.fragment( - colors && [ - // Safari only respects the first media-matching meta tag here, - // so position the dark-specific entry first - html.tag('meta', { - name: 'theme-color', - content: colors.dark, - media: '(prefers-color-scheme: dark)' - }), - - html.tag('meta', { - name: 'theme-color', - content: colors.primary, - }), - ]), + colors && + html.tag('meta', { + name: 'theme-color', + content: colors.dark, + }), oEmbedJSONHref && html.tag('link', { |