diff options
-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', { |