« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/upd8.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/upd8.js')
-rwxr-xr-xsrc/upd8.js20
1 files 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', {