From 505a9a0d19a7200943f97cddbfb9e1526f97129d Mon Sep 17 00:00:00 2001 From: Alex Culliere Date: Mon, 8 Mar 2021 17:46:11 +0200 Subject: [PATCH] Move async function to async context (attaching debugger) Signed-off-by: Alex Culliere --- src/renderer/bootstrap.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/bootstrap.tsx b/src/renderer/bootstrap.tsx index 0a3ea570bd..0d412e257c 100644 --- a/src/renderer/bootstrap.tsx +++ b/src/renderer/bootstrap.tsx @@ -47,6 +47,7 @@ export { export async function bootstrap(App: AppComponent) { const rootElem = document.getElementById("app"); + await attachChromeDebugger(); rootElem.classList.toggle("is-mac", isMac); extensionLoader.init(); @@ -87,4 +88,3 @@ export async function bootstrap(App: AppComponent) { // run bootstrap(process.isMainFrame ? LensApp : App); -await attachChromeDebugger();