aboutsummaryrefslogtreecommitdiffstats
path: root/build.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-10-09 08:36:26 -0700
committerAdam Soltys <[email protected]>2026-10-09 08:36:26 -0700
commit215d1050d7ff383afc28668fb307512110c38511 (patch)
treee3429910cf56e52beb3679b4c63b3dadc34d35f1 /build.js
parent57656c513e72646c4b55fd44b1ff2cdc96624c3f (diff)
downloadcoinosv3-215d1050d7ff383afc28668fb307512110c38511.tar.gz
coinosv3-215d1050d7ff383afc28668fb307512110c38511.zip
Theme colour at boot: the script that picks light or dark ran before <meta name="theme-color"> existed, so the bar colour stayed #15171a in light mode (a dark status bar over a light page, and the Android bars of the installed web app). It now runs after the PWA head, and light pages get #eef0f3
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01MgAFLnkF7KrdhuyCLMNgtL
Diffstat (limited to 'build.js')
-rw-r--r--build.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/build.js b/build.js
index ef343f3..f97907f 100644
--- a/build.js
+++ b/build.js
@@ -395,8 +395,8 @@ async function pageHtml({ css, staging, pwa, scriptHtml }) {
<meta name="color-scheme" content="light dark">
<title>${staging ? 'Coinos Staging' : 'Coinos'}</title>
<link rel="icon" href="${FAVICON}">
-<script>try{var t=localStorage.getItem('btc-wallet-theme');if(t!=='dark'&&t!=='light')t=matchMedia('(prefers-color-scheme:dark)').matches?'dark':'light';document.documentElement.dataset.theme=t;var m=document.querySelector('meta[name="theme-color"]');if(m)m.setAttribute('content',t==='dark'?'#15171a':'#eef0f3');}catch(e){}</script>
-${pwa ? PWA_HEAD : ''}<style>${css}</style>
+${pwa ? PWA_HEAD : ''}<script>try{var t=localStorage.getItem('btc-wallet-theme');if(t!=='dark'&&t!=='light')t=matchMedia('(prefers-color-scheme:dark)').matches?'dark':'light';document.documentElement.dataset.theme=t;var m=document.querySelector('meta[name="theme-color"]');if(m)m.setAttribute('content',t==='dark'?'#15171a':'#eef0f3');}catch(e){}</script>
+<style>${css}</style>
</head>
<body>
<div id="app">${bootShell(await brandSvg(), staging)}</div>