From 95b01c8691e70c5892e9230e393b16bee489d678 Mon Sep 17 00:00:00 2001 From: filip mertens Date: Mon, 11 Apr 2022 08:42:00 +0200 Subject: [PATCH] async index --- apps/remix-ide/src/index.tsx | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/apps/remix-ide/src/index.tsx b/apps/remix-ide/src/index.tsx index 7d4e34b983..92a0206003 100644 --- a/apps/remix-ide/src/index.tsx +++ b/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( - - - , - 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( + + + , + document.getElementById('root') + ) +})()