2022-12-12 18:41:31 +03:00
|
|
|
import './index.css';
|
2022-12-10 12:14:48 +03:00
|
|
|
|
2023-01-24 15:56:43 +03:00
|
|
|
import '@szhsin/react-menu/dist/core.css';
|
|
|
|
|
2022-12-12 18:41:31 +03:00
|
|
|
import { render } from 'preact';
|
2023-01-20 19:23:59 +03:00
|
|
|
import { HashRouter } from 'react-router-dom';
|
2022-12-10 12:14:48 +03:00
|
|
|
|
2022-12-12 18:41:31 +03:00
|
|
|
import { App } from './app';
|
|
|
|
|
|
|
|
if (import.meta.env.DEV) {
|
|
|
|
import('preact/debug');
|
|
|
|
}
|
2022-12-10 12:14:48 +03:00
|
|
|
|
2023-01-20 19:23:59 +03:00
|
|
|
render(
|
|
|
|
<HashRouter>
|
|
|
|
<App />
|
|
|
|
</HashRouter>,
|
|
|
|
document.getElementById('app'),
|
|
|
|
);
|
2023-01-11 04:47:46 +03:00
|
|
|
|
|
|
|
// Clean up iconify localStorage
|
|
|
|
// TODO: Remove this after few weeks?
|
|
|
|
setTimeout(() => {
|
|
|
|
try {
|
|
|
|
Object.keys(localStorage).forEach((key) => {
|
|
|
|
if (key.startsWith('iconify')) {
|
|
|
|
localStorage.removeItem(key);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
Object.keys(sessionStorage).forEach((key) => {
|
|
|
|
if (key.startsWith('iconify')) {
|
|
|
|
sessionStorage.removeItem(key);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
} catch (e) {}
|
|
|
|
}, 5000);
|