Skip to content

Commit

Permalink
Fix safe area color for ios iphone 15s
Browse files Browse the repository at this point in the history
  • Loading branch information
alexzhang1618 committed Apr 23, 2024
1 parent 0861556 commit d6f4cb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/common/ThemeToggle/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const ThemeToggle = () => {
// This affects the color of the safe zone on iPhone 15.
const metaThemeColor = document.querySelector('meta[name="theme-color"]');
if (metaThemeColor && resolvedTheme === 'dark') {
metaThemeColor.setAttribute('content', '#37393e');
metaThemeColor.setAttribute('content', '#25262b');
} else if (metaThemeColor) {
metaThemeColor.setAttribute('content', '#fff');
}
Expand Down

0 comments on commit d6f4cb9

Please sign in to comment.