2020-03-19 15:37:38 +00:00
|
|
|
import React, { Suspense } from 'react';
|
2022-11-23 05:22:52 +00:00
|
|
|
import { createRoot } from 'react-dom/client';
|
2021-08-25 15:21:30 +00:00
|
|
|
|
2020-03-04 10:41:40 +00:00
|
|
|
import App from './App';
|
2020-04-10 14:04:19 +00:00
|
|
|
import ErrorBoundary from './ErrorBoundary';
|
2020-03-19 15:37:38 +00:00
|
|
|
import './i18n';
|
2020-04-10 04:50:16 +00:00
|
|
|
|
|
|
|
import './fonts.css';
|
2020-03-19 15:37:38 +00:00
|
|
|
import './main.css';
|
2020-03-04 10:41:40 +00:00
|
|
|
|
|
|
|
|
2022-11-22 15:23:41 +00:00
|
|
|
const { app } = window.require('@electron/remote');
|
2020-03-04 10:41:40 +00:00
|
|
|
|
2022-11-22 15:23:41 +00:00
|
|
|
console.log('Version', app.getVersion());
|
2020-03-04 10:41:40 +00:00
|
|
|
|
2021-08-25 15:21:30 +00:00
|
|
|
|
2022-11-23 05:22:52 +00:00
|
|
|
const container = document.getElementById('root');
|
|
|
|
const root = createRoot(container);
|
|
|
|
root.render(
|
|
|
|
<ErrorBoundary>
|
|
|
|
<Suspense fallback={<div />}>
|
|
|
|
<App />
|
|
|
|
</Suspense>
|
|
|
|
</ErrorBoundary>,
|
2022-02-21 06:16:15 +00:00
|
|
|
);
|