From 0abc70822a43bc403733e32d747ee29f7f876246 Mon Sep 17 00:00:00 2001 From: bunsenstraat Date: Mon, 28 Feb 2022 07:45:53 +0100 Subject: [PATCH] catch theme error --- apps/remix-ide/src/index.tsx | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/apps/remix-ide/src/index.tsx b/apps/remix-ide/src/index.tsx index c2495adec8..35b5a56659 100644 --- a/apps/remix-ide/src/index.tsx +++ b/apps/remix-ide/src/index.tsx @@ -10,12 +10,14 @@ import { Storage } from '@remix-project/remix-lib' (async function () { - // load app config - const configStorage = new Storage('config-v0.8:') - const config = new Config(configStorage) - Registry.getInstance().put({ api: config, name: 'config' }) - const theme = new ThemeModule() - theme.initTheme() + // load current theme befor anything else + try { + const configStorage = new Storage('config-v0.8:') + const config = new Config(configStorage) + Registry.getInstance().put({ api: config, name: 'config' }) + const theme = new ThemeModule() + theme.initTheme() + } catch (e) { } render(