added liquid glass theme
This commit is contained in:
@@ -4,6 +4,10 @@ import './index.css'
|
||||
import App from './App.tsx'
|
||||
import { listenForegroundMessages } from './hooks/useReminder'
|
||||
|
||||
// Apply saved theme immediately to avoid flash
|
||||
const savedTheme = localStorage.getItem('gj-theme') || 'light'
|
||||
document.documentElement.setAttribute('data-theme', savedTheme)
|
||||
|
||||
if ('serviceWorker' in navigator) {
|
||||
window.addEventListener('load', () => {
|
||||
navigator.serviceWorker.register('/sw.js')
|
||||
|
||||
Reference in New Issue
Block a user