async index

pull/5370/head
filip mertens 3 years ago
parent 25d2aa99bb
commit f13bd1a766
  1. 29
      apps/remix-ide/src/index.tsx

@ -8,20 +8,21 @@ import Config from './config'
import Registry from './app/state/registry'
import { Storage } from '@remix-project/remix-lib'
try {
const configStorage = new Storage('config-v0.8:')
const config = new Config(configStorage);
Registry.getInstance().put({ api: config, name: 'config' })
} catch (e) { }
const theme = new ThemeModule()
theme.initTheme()
render(
<React.StrictMode>
<Preload></Preload>
</React.StrictMode>,
document.getElementById('root')
)
(async function () {
try {
const configStorage = new Storage('config-v0.8:')
const config = new Config(configStorage);
Registry.getInstance().put({ api: config, name: 'config' })
} catch (e) { }
const theme = new ThemeModule()
theme.initTheme()
render(
<React.StrictMode>
<Preload></Preload>
</React.StrictMode>,
document.getElementById('root')
)
})()

Loading…
Cancel
Save