|
|
|
@ -1,6 +1,6 @@ |
|
|
|
|
import {RemixApp} from '@remix-ui/app' |
|
|
|
|
import React, {useEffect, useRef, useState} from 'react' |
|
|
|
|
import {render} from 'react-dom' |
|
|
|
|
import { createRoot } from 'react-dom/client' |
|
|
|
|
import * as packageJson from '../../../../../package.json' |
|
|
|
|
import {fileSystem, fileSystems} from '../files/fileSystem' |
|
|
|
|
import {indexedDBFileSystem} from '../files/filesystems/indexedDB' |
|
|
|
@ -10,7 +10,7 @@ import './styles/preload.css' |
|
|
|
|
import isElectron from 'is-electron' |
|
|
|
|
const _paq = (window._paq = window._paq || []) |
|
|
|
|
|
|
|
|
|
export const Preload = () => { |
|
|
|
|
export const Preload = (props: any) => { |
|
|
|
|
const [supported, setSupported] = useState<boolean>(true) |
|
|
|
|
const [error, setError] = useState<boolean>(false) |
|
|
|
|
const [showDownloader, setShowDownloader] = useState<boolean>(false) |
|
|
|
@ -33,12 +33,7 @@ export const Preload = () => { |
|
|
|
|
.then((AppComponent) => { |
|
|
|
|
const appComponent = new AppComponent.default() |
|
|
|
|
appComponent.run().then(() => { |
|
|
|
|
render( |
|
|
|
|
<> |
|
|
|
|
<RemixApp app={appComponent} /> |
|
|
|
|
</>, |
|
|
|
|
document.getElementById('root') |
|
|
|
|
) |
|
|
|
|
props.root.render(<RemixApp app={appComponent} />) |
|
|
|
|
}) |
|
|
|
|
}) |
|
|
|
|
.catch((err) => { |
|
|
|
|