From d0059cc2743e785605bb7b34553dd2def528ab5c Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Tue, 6 Dec 2022 17:13:33 -0400 Subject: always use colors.dark for theme-color --- src/upd8.js | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/src/upd8.js b/src/upd8.js index 38a2e87..518e5f1 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', { -- cgit 1.3.0-6-gf8a5