You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
616 B
24 lines
616 B
import './i18n' |
|
import './index.css' |
|
import './polyfill' |
|
import './services/lightning.service' |
|
|
|
import { StrictMode } from 'react' |
|
import { createRoot } from 'react-dom/client' |
|
import App from './App.tsx' |
|
import { ErrorBoundary } from './components/ErrorBoundary.tsx' |
|
|
|
const setVh = () => { |
|
document.documentElement.style.setProperty('--vh', `${window.innerHeight}px`) |
|
} |
|
window.addEventListener('resize', setVh) |
|
window.addEventListener('orientationchange', setVh) |
|
setVh() |
|
|
|
createRoot(document.getElementById('root')!).render( |
|
<StrictMode> |
|
<ErrorBoundary> |
|
<App /> |
|
</ErrorBoundary> |
|
</StrictMode> |
|
)
|
|
|