mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-21 16:55:25 +03:00
Attempt to fix iOS status bar color
This commit is contained in:
parent
c3e40297e0
commit
f056d7407a
2 changed files with 3 additions and 1 deletions
|
@ -31,6 +31,7 @@
|
||||||
name="theme-color"
|
name="theme-color"
|
||||||
data-theme-setting="auto"
|
data-theme-setting="auto"
|
||||||
content="#fff"
|
content="#fff"
|
||||||
|
data-content="#fff"
|
||||||
data-content-temp="#ffff"
|
data-content-temp="#ffff"
|
||||||
media="(prefers-color-scheme: light)"
|
media="(prefers-color-scheme: light)"
|
||||||
/>
|
/>
|
||||||
|
@ -38,6 +39,7 @@
|
||||||
name="theme-color"
|
name="theme-color"
|
||||||
data-theme-setting="auto"
|
data-theme-setting="auto"
|
||||||
content="#242526"
|
content="#242526"
|
||||||
|
data-content="#242526"
|
||||||
data-content-temp="#242526ff"
|
data-content-temp="#242526ff"
|
||||||
media="(prefers-color-scheme: dark)"
|
media="(prefers-color-scheme: dark)"
|
||||||
/>
|
/>
|
||||||
|
|
|
@ -224,7 +224,7 @@ if (isIOS) {
|
||||||
`meta[name="theme-color"][media*="${colorScheme}"]`,
|
`meta[name="theme-color"][media*="${colorScheme}"]`,
|
||||||
);
|
);
|
||||||
if ($meta) {
|
if ($meta) {
|
||||||
const color = $meta.content;
|
const color = $meta.dataset.content;
|
||||||
const tempColor = $meta.dataset.contentTemp;
|
const tempColor = $meta.dataset.contentTemp;
|
||||||
$meta.content = tempColor || '';
|
$meta.content = tempColor || '';
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
|
Loading…
Reference in a new issue