Skip to content

Commit 9b4e297

Browse files
committed
feat(ios): theme-color swap for iOS mode
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent dc0125e commit 9b4e297

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1770,6 +1770,7 @@
17701770
try{var _qos=new URLSearchParams(location.search).get('os');if(_qos==='macos'||_qos==='linux'||_qos==='ios')osMode=_qos;}catch(e){} /* ?os= preview override */
17711771
document.body.classList.toggle('macos',osMode==='macos');
17721772
document.body.classList.toggle('ios',osMode==='ios');
1773+
if(osMode==='ios'){var _tc=document.querySelector('meta[name="theme-color"]');if(_tc)_tc.setAttribute('content','#000000');}
17731774
[].forEach.call(document.querySelectorAll('#osswitch button'),function(b){b.classList.toggle('on',b.getAttribute('data-os')===osMode);b.addEventListener('click',function(){applyOs(b.getAttribute('data-os'));});});
17741775
updateClock();
17751776
if(osMode==='ios'){P.count=Math.min(P.count,700);P.cursorGlowA=0;if(typeof initIOS==='function')initIOS();startEmpty();}

0 commit comments

Comments
 (0)