mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-12-20 03:22:25 +03:00
28281bb752
It's time to do this menu thing the right way instead of hacky CSS
36 lines
737 B
JavaScript
36 lines
737 B
JavaScript
import './index.css';
|
|
|
|
import '@szhsin/react-menu/dist/core.css';
|
|
|
|
import { render } from 'preact';
|
|
import { HashRouter } from 'react-router-dom';
|
|
|
|
import { App } from './app';
|
|
|
|
if (import.meta.env.DEV) {
|
|
import('preact/debug');
|
|
}
|
|
|
|
render(
|
|
<HashRouter>
|
|
<App />
|
|
</HashRouter>,
|
|
document.getElementById('app'),
|
|
);
|
|
|
|
// 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);
|