diff --git a/index.html b/index.html index 35bb3e02..c7ed162a 100644 --- a/index.html +++ b/index.html @@ -31,6 +31,7 @@ name="theme-color" data-theme-setting="auto" content="#fff" + data-content="#fff" data-content-temp="#ffff" media="(prefers-color-scheme: light)" /> @@ -38,6 +39,7 @@ name="theme-color" data-theme-setting="auto" content="#242526" + data-content="#242526" data-content-temp="#242526ff" media="(prefers-color-scheme: dark)" /> diff --git a/src/app.jsx b/src/app.jsx index c09f5626..5af6389d 100644 --- a/src/app.jsx +++ b/src/app.jsx @@ -224,7 +224,7 @@ if (isIOS) { `meta[name="theme-color"][media*="${colorScheme}"]`, ); if ($meta) { - const color = $meta.content; + const color = $meta.dataset.content; const tempColor = $meta.dataset.contentTemp; $meta.content = tempColor || ''; setTimeout(() => {