Light mode update
This commit is contained in:
@@ -5,6 +5,12 @@
|
||||
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Rats with Gats</title>
|
||||
<script>
|
||||
// Apply the saved theme before first paint to avoid a flash of the
|
||||
// wrong palette. lib/theme.js owns this key afterwards.
|
||||
document.documentElement.dataset.theme =
|
||||
localStorage.getItem('pirats-theme') === 'dark' ? 'dark' : 'light';
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
|
||||
Reference in New Issue
Block a user