import { createRoot } from 'react-dom/client'; // Import polyfills first import './lib/polyfills.ts'; import { ErrorBoundary } from '@/components/ErrorBoundary'; import App from './App.tsx'; import './index.css'; // FIXME: a custom font should be used. Eg: // import '@fontsource-variable/'; createRoot(document.getElementById("root")!).render( ); // Register service worker for PWA if ('serviceWorker' in navigator) { window.addEventListener('load', () => { navigator.serviceWorker.register('/sw.js') .then((registration) => { console.log('SW registered: ', registration); }) .catch((registrationError) => { console.log('SW registration failed: ', registrationError); }); }); }